import { CircularProgress } from "@mui/material"; import { Inbox } from "lucide-react"; import { Text } from "@/components/ui/text"; import type { NotificationCenter } from "./use-notification-center"; import { NotificationRow } from "./notification-row"; type NotificationFeedListProps = { center: NotificationCenter; }; export function NotificationFeedList({ center }: NotificationFeedListProps) { if (center.isLoading) { return (
); } if (center.error != null && !center.hasData) { return ( Notifications could not be loaded. They will retry automatically. ); } if (center.sections.length === 0) { return (
Nothing needs your attention
); } return (
{center.sections.map((section) => (
{section.label} {section.count}
))}
); }