Add typescript config, move to v1 dir

This commit is contained in:
Alex Holliday committed 2025-09-25 10:11:41 -07:00
1 parent 879cbb8886
commit 4d89213e1c
187 files changed
+708 -637

No files matched your search

@@ -0,0 +1,43 @@
// Components
import { Stack } from "@mui/material";
import Breadcrumbs from "../../../../Components/Breadcrumbs/index.jsx";
import MonitorCreateHeader from "../../../../Components/MonitorCreateHeader/index.jsx";
import StatusPagesTable from "./Components/StatusPagesTable/index.jsx";
import PageStateWrapper from "../../../../Components/PageStateWrapper/index.jsx";
// Utils
import { useTheme } from "@emotion/react";
import { useStatusPagesFetch } from "./Hooks/useStatusPagesFetch.jsx";
import { useIsAdmin } from "../../../../Hooks/v1/useIsAdmin.js";
const BREADCRUMBS = [{ name: `Status Pages`, path: "" }];
const StatusPages = () => {
// Utils
const theme = useTheme();
const isAdmin = useIsAdmin();
const [isLoading, networkError, statusPages] = useStatusPagesFetch();
return (
<>
<PageStateWrapper
networkError={networkError}
isLoading={isLoading}
items={statusPages}
type="statusPage"
fallbackLink="/status/uptime/create"
>
<Stack gap={theme.spacing(10)}>
<Breadcrumbs list={BREADCRUMBS} />
<MonitorCreateHeader
label="Create status page"
isAdmin={isAdmin}
path="/status/uptime/create"
isLoading={isLoading}
/>
<StatusPagesTable data={statusPages} />
</Stack>
</PageStateWrapper>
</>
);
};
export default StatusPages;