import type { ReactNode } from 'react'; import { useConfig } from '@/lib/session'; import { LogoMark, VersionTag } from './brand'; /** The calm, centered frame for setup, sign-in and the first password change. */ export function AuthLayout({ title, subtitle, children }: { title: string; subtitle?: ReactNode; children: ReactNode }) { const { data } = useConfig(); return (

{title}

{subtitle ?

{subtitle}

: null}
{children}
); } export function FormError({ message }: { message: string | null }) { if (!message) return null; return (

{message}

); }