mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
Header bell panel and /notifications page share one feed from GET /api/notifications: labeled sections with live counts, unread styling, session-only dismiss and clear all (acknowledge rows excluded), and deep links to the unassigned queue and a work order's tab via ?wo=&tab=.
26 lines
872 B
TypeScript
26 lines
872 B
TypeScript
import { Box } from "@mui/material";
|
|
import { NotificationFeedActions } from "@/components/notifications/notification-feed-actions";
|
|
import { NotificationFeedList } from "@/components/notifications/notification-feed-list";
|
|
import { useNotificationCenter } from "@/components/notifications/use-notification-center";
|
|
import { PageHeader } from "@/components/ui/page-header";
|
|
|
|
export default function NotificationsPage() {
|
|
const center = useNotificationCenter();
|
|
|
|
return (
|
|
<Box className="flex flex-col gap-2 p-2.5">
|
|
<PageHeader
|
|
surface
|
|
title="Notifications"
|
|
actions={
|
|
<div className="flex items-center gap-3">
|
|
<NotificationFeedActions center={center} />
|
|
</div>
|
|
}
|
|
/>
|
|
<Box className="max-w-3xl px-5 pb-5">
|
|
<NotificationFeedList center={center} />
|
|
</Box>
|
|
</Box>
|
|
);
|
|
}
|