SurfSense/surfsense_web/stores/announcement.atom.ts
DESKTOP-RTLN3BA\$punk 6298d631e4 refactor(chats): streamline podcast generation and enhance chat selection UI
- Removed podcast generation state and related functions from the ChatsPageClient component.
- Simplified chat selection UI by removing unnecessary elements and improving layout.
- Updated the AnnouncementBanner component to use Jotai for state management, allowing for persistent dismissal of the announcement.
2025-11-11 23:51:26 -08:00

5 lines
259 B
TypeScript

import { atomWithStorage } from "jotai/utils";
// Atom to track whether the announcement banner has been dismissed
// Persists to localStorage automatically
export const announcementDismissedAtom = atomWithStorage("surfsense_announcement_dismissed", false);