import { writable } from 'svelte/store';

// Holds this device/user's earned "passport stamps" (see firebase/stamps.js).
// Populated by getStamps() on load and appended to live by
// checkAndAwardStamp() whenever a new stamp is earned, so the bottom-nav
// (mobile) and stamp-book button (desktop) in +page.svelte can react to
// $stampsStore.length to switch between their empty/filled icon states
// without needing a refetch.
export const stampsStore = writable([]);
