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