import {Divider, IconButton, List, Menu, Tooltip} from "@mui/material"; import Badge from "@mui/material/Badge"; import * as React from "react"; import {ReactElement} from "react"; import Notification, {NotificationProps} from "./NotificationProps"; export interface MyNotificationProps { notifications: NotificationProps[], tooltipTitle: string, mainIcon: ReactElement } function MyNotifications(props: MyNotificationProps) { const [anchorEl, setAnchorEl] = React.useState(null); const open = Boolean(anchorEl); const handleClick = (event: React.MouseEvent) => { setAnchorEl(event.currentTarget); }; const handleClose = () => { setAnchorEl(null); }; const NotificationItems = () => { const items = props.notifications.map((oneNotification, index, array) => { const notification = (); const divider = (); return index + 1 !== array.length ? (<>{notification}{divider}) : (<>{notification}) }); return (<>{items}) } return ( <> {props.mainIcon} ); } export default MyNotifications;