import * as React from 'react' import { cn } from '../core/cn' interface SettingField { key: string label: string description?: string type: 'text' | 'number' | 'toggle' | 'select' | 'textarea' value?: unknown options?: Array<{ label: string; value: string }> placeholder?: string } interface SettingSection { id: string title: string description?: string fields: SettingField[] } interface SettingsPageProps { title?: string subtitle?: string sections: SettingSection[] onSave?: (values: Record) => void className?: string } export function settingsPage({ title = 'Settings', subtitle, sections, onSave, className, }: SettingsPageProps): React.ReactElement { return (
{/* Header */}

{title}

{subtitle &&

{subtitle}

}
{/* Tabs navigation */}
{/* Sections */}
{sections.map((section) => (

{section.title}

{section.description &&

{section.description}

}
{section.fields.map((field) => (
{field.description &&

{field.description}

}
{field.type === 'toggle' ? ( ) : field.type === 'select' ? ( ) : field.type === 'textarea' ? (