import { AnimatePresence, motion } from "framer-motion"; import { useGalleryStore } from "../store"; // Shown once on the first launch after an update, inviting the user to read the // changelog. Distinct from UpdateToast (which drives the download/install flow). export function WhatsNewToast() { const whatsNewToast = useGalleryStore((s) => s.whatsNewToast); const whatsNewOpen = useGalleryStore((s) => s.whatsNewOpen); const openWhatsNew = useGalleryStore((s) => s.openWhatsNew); const dismissWhatsNewToast = useGalleryStore((s) => s.dismissWhatsNewToast); const visible = whatsNewToast !== null && !whatsNewOpen; return ( {visible ? (

What's new in Phokus v{whatsNewToast}

See what's changed in this version.

) : null}
); }