import type { Notification } from '../../types/types'; import './Notifications.css'; type Props = { notifications: Notification[]; onRemove: (id: number) => void; onHover: (id: number, hovering: boolean) => void; }; export default function Notifications({ notifications, onRemove, onHover }: Props) { return (
{notifications.map((n) => (
onHover(n.id, true)} onMouseLeave={() => onHover(n.id, false)} > {n.message}
))}
); }