20 lines
459 B
JavaScript
20 lines
459 B
JavaScript
import {getCreator, getTemplate} from './filesystem';
|
|
import {addNote} from './createAnkiLanModel';
|
|
import {SEND_FIELD} from '../constants/anki-constants';
|
|
|
|
export const submit = () => ({});
|
|
export const sendWord = async fields => {
|
|
addNote(fields.payload);
|
|
};
|
|
|
|
export const sendField = field => ({
|
|
type: SEND_FIELD,
|
|
payload: field.text,
|
|
role: field.role,
|
|
});
|
|
|
|
export const selectCertainFormValue = (
|
|
unicName = String,
|
|
value = String,
|
|
) => ({});
|