diff --git a/src/routes/admin/ui.ts b/src/routes/admin/ui.tsx similarity index 57% rename from src/routes/admin/ui.ts rename to src/routes/admin/ui.tsx index fed431d..d7d7533 100644 --- a/src/routes/admin/ui.ts +++ b/src/routes/admin/ui.tsx @@ -1,29 +1,29 @@ -import { html, raw } from "hono/html"; import { designSystem } from "../../styles/index"; import { interactiveScripts } from "../../scripts/index"; -// eslint-disable-next-line @typescript-eslint/no-explicit-any -export const layout = (title: string, content: any) => { - return html` +type LayoutProps = { + title: string; + children: unknown; +}; + +export const Layout = ({ title, children }: LayoutProps) => { + return ( - ${title} - Email to RSS Admin + {title} - Email to RSS Admin - - +