import type { ReactNode } from 'react' type SettingsPageProps = { title: string description?: string children: ReactNode } export function SettingsPage({ title, description, children }: SettingsPageProps) { return (

{title}

{description &&

{description}

}
{children}
) } type SettingsSectionProps = { label?: string children: ReactNode } export function SettingsSection({ label, children }: SettingsSectionProps) { return (
{label &&

{label}

}
{children}
) } type SettingsRowProps = { title: string description?: string control?: ReactNode } export function SettingsRow({ title, description, control }: SettingsRowProps) { return (
{title} {description && {description}}
{control &&
{control}
}
) }