/** * Auth Form Layout - FakeMUI Component * Wrapper layout for authentication pages (login, register) */ import React from 'react'; import Link from 'next/link'; import { Box, Typography } from '../fakemui'; import styles from '../../scss/components/layout/auth-layout.module.scss'; export interface AuthFormLayoutProps { /** Page title (e.g. "WorkflowUI") */ title: string; /** Subtitle text (e.g. "Sign in to your account") */ subtitle: string; /** Form content */ children: React.ReactNode; /** Footer text (e.g. "Don't have an account?") */ footerText?: string; /** Footer link href */ footerLinkHref?: string; /** Footer link text */ footerLinkText?: string; /** Additional CSS class */ className?: string; [key: string]: any; } /** * AuthFormLayout * * Provides consistent layout for authentication pages with centered card, * header, form area, and footer with link. * * @example * ```tsx * *
...
*
* ``` */ export const AuthFormLayout: React.FC = ({ title, subtitle, children, footerText, footerLinkHref, footerLinkText, className, ...rest }) => { return ( {title} {subtitle} {children} {(footerText || footerLinkHref || footerLinkText) && ( {footerText}{' '} {footerLinkHref && footerLinkText && ( {footerLinkText} )} )} ); };