2020-03-05 22:16:34 +00:00
|
|
|
import {AnkiDroid} from 'react-native-ankidroid/dist/ankidroid';
|
2020-03-08 11:17:42 +00:00
|
|
|
import {
|
|
|
|
SET_ANKI_NOTE_CREATOR,
|
|
|
|
SET_CREATOR_TEMPLATE,
|
|
|
|
SET_DECK,
|
|
|
|
} from '../constants/anki-constants';
|
2020-03-05 22:16:34 +00:00
|
|
|
|
|
|
|
export const selectDeck = id => ({
|
|
|
|
type: SET_DECK,
|
|
|
|
payload: id,
|
|
|
|
});
|
2020-03-08 11:17:42 +00:00
|
|
|
|
|
|
|
export const setAnkiNoteCreator = creator => ({
|
|
|
|
type: SET_ANKI_NOTE_CREATOR,
|
|
|
|
payload: creator,
|
|
|
|
});
|
|
|
|
|
|
|
|
export const setCreatorTemplate = template => ({
|
|
|
|
type: SET_CREATOR_TEMPLATE,
|
|
|
|
payload: template,
|
|
|
|
});
|