import type { AuthPageLayoutProps } from './types.js'; /** * Full-page auth layout — centered card with product branding. * Wraps any auth form (LoginForm, RegisterForm, etc.). * Styled via CSS custom properties (inherits --bl-* from host app). */ export function AuthPageLayout({ productName, logo, title, subtitle, children, footer, className, }: AuthPageLayoutProps) { return (
{/* Branding */}
{logo && (
{typeof logo === 'string' ? ( {productName} ) : ( logo )}
)}
{productName}
{title}
{subtitle && (
{subtitle}
)}
{/* Form content */} {children} {/* Footer */} {footer && (
{footer}
)}
); }