import formatDate from "../../utils/date/formatDate.js"; import formatTime from "../../utils/date/formatTime.js"; import styles from "./NotificationCard.module.css" import Notification from "../../interfaces/notification.interface"; interface NotificationCardProps { notifications: Notification[]; deleteNotification: (id: string) => void; } function NotificationCard({ notifications, deleteNotification }: NotificationCardProps) { return ( notifications.map((notification, index) => (
Le {formatDate(notification.created_at)} à {formatTime(notification.created_at)}

{notification.data.message}

)) ); } export default NotificationCard;