import clsx from "clsx";
import { useTranslation } from "react-i18next";
import { UI_ACTION_IDS } from "~/application/ui/uiRegistry";
import { BellIcon } from "~/components/ui/icons/vendor";
interface Props {
unseenCount?: number;
to: string;
/**
* AK-P3 (AD-28): when provided the bell opens the notifications drawer
* instead of navigating; the tenant NavBar wires this together with the
* live SSE unseen count. Hosts without a drawer (admin) keep the link.
*/
onOpen?: () => void;
}
export default function NotificationsButton({ unseenCount, to, onOpen }: Props) {
const { t } = useTranslation();
const className = clsx(
"text-muted-foreground bg-secondary hover:bg-secondary/90 border-border relative inline-flex items-center rounded-full border p-2 font-medium shadow-inner focus-visible:z-10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
);
const content = (
<>