import { For, Show, type JSX } from "solid-js"; import { Bell, Settings } from "../../../lib/icons"; import { notificationItems, unreadNotificationCount } from "../data/shell.data"; import styles from "./NotificationsMenu.module.scss"; type NotificationsMenuProps = { id: string; menuRef: (element: HTMLDivElement) => void; onSelect: () => void; }; export const NotificationsMenu = (props: NotificationsMenuProps): JSX.Element => { const unreadItems = notificationItems.filter((item) => item.unread); const earlierItems = notificationItems.filter((item) => !item.unread); const hasNotifications = notificationItems.length > 0; const isCaughtUp = unreadItems.length === 0 && hasNotifications; return ( ); };