import { Box, Typography, Paper, Button } from "@mui/material" import { Stack } from "@mui/material" import { useStore } from "react-admin" import dataProvider, { ServerNotificationsResponse } from "../../synapse/dataProvider" import { useAppContext } from "../../Context"; import DeleteIcon from "@mui/icons-material/Delete"; const DisplayTime = ({ date }: { date: string }) => { const dateFromDateString = new Date(date); return <>{dateFromDateString.toLocaleString()}; }; const ServerNotificationsPage = () => { const { etkeccAdmin } = useAppContext(); const [serverNotifications, setServerNotifications] = useStore("serverNotifications", { notifications: [], success: false, }); const notifications = serverNotifications.notifications; return ( Server Notifications {notifications.length === 0 ? ( No new notifications. ) : ( notifications.map((notification, index) => ( )) )} ); }; export default ServerNotificationsPage;