components

This commit is contained in:
Alex Holliday committed 2026-01-23 12:33:40 -08:00
1 parent 363d89e4f4
commit 69018a4944
10 files changed
+244 -7

No files matched your search

+14 -4
View File
@@ -1,15 +1,25 @@
import { useGet } from "@/Hooks/UseApi";
import { MonitorBasePageWithStates } from "@/Components/v2/design-elements";
import { type Monitor } from "@/Types/Monitor";
import { FilterControls } from "@/Components/v2/monitors";
const UptimeMonitorsPage = () => {
const {
data: monitors,
isLoading,
error,
} = useGet<Monitor[]>("/monitors/team?type=http&type=ping&type=port&type=docker");
return (
<MonitorBasePageWithStates
loading={false}
error={false}
items={[]}
loading={isLoading}
error={error}
items={monitors || []}
page="uptime"
actionLink="/uptime/create"
>
Test
<FilterControls />
<pre>{JSON.stringify(monitors, null, 2)}</pre>
</MonitorBasePageWithStates>
);
};