import { createEntry, deleteEntry, entries, getEntry, snapshotEntry, updateEntry } from '../../utils/data/firestore.queries';
export const deckEntries = (userId) => {
  return entries({ userId, collection: 'decks' });
};
export const deleteDeck = (deckId) => {
  return deleteEntry({ id: deckId, collection: 'decks' });
};
export const createDeck = (deck) => {
  return createEntry({ data: deck, collection: 'decks' });
};
export const getDeck = (deckId) => {
  return getEntry({ id: deckId, collection: 'decks' });
};
export const updateDeck = (deck) => {
  return updateEntry({ entry: deck, collection: 'decks' });
};
export const snapshotDeck = async ({ deckId, onNext, onError }) => {
  return snapshotEntry({ id: deckId, collection: 'decks', onNext, onError });
};
