import { usePostHogClientCapture } from "@/src/features/posthog-analytics/usePostHogClientCapture"; import { X } from "lucide-react"; import type { JSX } from "react"; export interface TNotification { id: number; releaseDate: Date; message: string | JSX.Element; description?: JSX.Element | string; } interface NotificationProps { notification: TNotification; setLastSeenId: (id: number) => void; dismissToast: (t?: string | number | undefined) => void; toast: string | number; } export const Notification: React.FC = ({ notification, setLastSeenId, dismissToast, toast, }) => { const capture = usePostHogClientCapture(); return (
{notification.message}
{notification.description && (
{notification.description}
)}
); };