blob: 4e204431e38b6660c69f6349f195a5a9f9959380 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import { useSystemAnnouncements } from "@/apis/hooks";
import { QueryOverlay } from "@/components/async";
import { Container } from "@mantine/core";
import { useDocumentTitle } from "@mantine/hooks";
import { FunctionComponent } from "react";
import Table from "./table";
const SystemAnnouncementsView: FunctionComponent = () => {
const announcements = useSystemAnnouncements();
const { data } = announcements;
useDocumentTitle("Announcements - Bazarr (System)");
return (
<QueryOverlay result={announcements}>
<Container fluid px={0}>
<Table announcements={data ?? []}></Table>
</Container>
</QueryOverlay>
);
};
export default SystemAnnouncementsView;
|