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