diff --git a/frontend/src/layouts/page.tsx b/frontend/src/layouts/page.tsx index bd3cd8de0..d835b0a35 100644 --- a/frontend/src/layouts/page.tsx +++ b/frontend/src/layouts/page.tsx @@ -1,5 +1,6 @@ import { ConfigAgain } from "@components/config/again"; import { ConfirmUpdate } from "@components/config/confirm-update"; +import { Resource } from "@monitor/client/dist/types"; import { Button } from "@ui/button"; import { Card, CardHeader, CardTitle, CardContent } from "@ui/card"; import { keys } from "@util/helpers"; @@ -46,13 +47,13 @@ export const Section = ({ title, icon, actions, children }: SectionProps) => ( ); -export const ConfigLayout = ({ +export const ConfigLayout = ["config"]>({ content, children, onConfirm, onReset, }: { - content: any; + content: Partial; children: ReactNode; onConfirm: () => void; onReset: () => void;