import { setData } from './data.utils';
export const uploadDeckData = async ({ deck, actor, log }) => setData({ key: `/decks/${deck.id}`, id: deck.id, data: deck.data, actor, log });
export const uploadSlideData = async ({ deckId, slide, actor, log }) => setData({ key: `/decks/${deckId}/slides/${slide.id}`, id: slide.id, data: slide.data, actor, log });
export const uploadDocData = async ({ doc, actor, log }) => setData({ key: `/docs/${doc.id}`, id: doc.id, data: doc.data, actor, log });
export const uploadParagraphData = async ({ docId, paragraph, actor, log }) => setData({ key: `/docs/${docId}/paragraphs/${paragraph.id}`, id: paragraph.id, data: paragraph.data, actor, log });
