diff options
| author | Fuwn <[email protected]> | 2026-02-07 01:42:57 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-02-07 01:42:57 -0800 |
| commit | 5c5b1993edd890a80870ee05607ac5f088191d4e (patch) | |
| tree | a721b76bcd49ba10826c53efc87302c7a689512f /apps/web/lib/notify.ts | |
| download | asa.news-5c5b1993edd890a80870ee05607ac5f088191d4e.tar.xz asa.news-5c5b1993edd890a80870ee05607ac5f088191d4e.zip | |
feat: asa.news RSS reader with developer tier, REST API, and webhooks
Full-stack RSS reader SaaS: Supabase + Next.js + Go worker.
Includes three subscription tiers (free/pro/developer), API key auth,
read-only REST API, webhook push notifications, Stripe billing with
proration, and PWA support.
Diffstat (limited to 'apps/web/lib/notify.ts')
| -rw-r--r-- | apps/web/lib/notify.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/web/lib/notify.ts b/apps/web/lib/notify.ts new file mode 100644 index 0000000..911364f --- /dev/null +++ b/apps/web/lib/notify.ts @@ -0,0 +1,11 @@ +import { toast } from "sonner" +import { useNotificationStore } from "./stores/notification-store" + +export function notify( + message: string, + type: "info" | "success" | "error" = "info", + actionUrl?: string +) { + toast(message) + useNotificationStore.getState().addNotification(message, type, actionUrl) +} |