import { Surface, Text } from "@cloudflare/kumo"; import type { ReactNode } from "react"; export interface AuthLayoutProps { /** 20px brand icon, shown in a tinted tile next to the product name. */ brand: ReactNode; product: string; /** Card heading ("Sign in", "Create your account"). */ title: ReactNode; description?: ReactNode; /** The form: tabs, fields, a full-width primary button. */ children: ReactNode; /** Under the card: language switch, help links. */ footer?: ReactNode; } /** * Sign-in / sign-up / setup screens (DESIGN.md §2e): no sidebar, a centred 400px column on the * canvas — brand row, one `Surface` card with the heading and form, a quiet footer. */ export function AuthLayout({ brand, product, title, description, children, footer, }: AuthLayoutProps) { return (
{brand} {product}
{title} {description && {description}}
{children}
{footer && (
{footer}
)}
); }