'use client'; import { useEffect } from 'react'; export default function HubBell({ forceShow = false }: { forceShow?: boolean }) { useEffect(() => { const t = setTimeout(() => { fetch('/api/license-config', { cache: 'no-store' }) .then((r) => r.json()) .then((j) => { try { const a = j && j.data && j.data.announcement; if (!a) return; const seen = JSON.parse( localStorage.getItem('hub_seen') || '{}' ); if (!seen['a' + a.id]) { const d = document.querySelector('.mv-bell-dot'); if (d) (d as HTMLElement).style.display = 'block'; } } catch {} }) .catch(() => {}); }, 1500); return () => clearTimeout(t); }, []); return ( ); }