import { useState, useEffect } from 'react'; import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { APP_VERSION, RELEASE_NOTES } from '@/lib/version'; import { Sparkles } from 'lucide-react'; const STORAGE_KEY = `bt-release-seen-${APP_VERSION}`; export function ReleaseNotesDialog() { const [open, setOpen] = useState(false); useEffect(() => { const seen = localStorage.getItem(STORAGE_KEY); if (!seen) setOpen(true); }, []); const handleClose = () => { localStorage.setItem(STORAGE_KEY, 'true'); setOpen(false); }; return ( { if (!o) handleClose(); }}>
What's new in v{RELEASE_NOTES.version}
Bill Tracker is brand new
{RELEASE_NOTES.highlights.map((item, i) => (
{item.icon}

{item.title}

{item.desc}

))}
Access original UI →
); }