import type { FunctionComponent } from 'react'; export interface SettingsFormProps { /** Class applied to form container */ className?: string; /** Array of fields to display in the settings layout */ fields?: { id: string; label: string; field: React.ReactElement }[]; /** Sets form to compact styling. */ isCompact?: boolean; } export const SettingsForm: FunctionComponent = ({ className, fields = [], isCompact, ...props }) => (
{fields.map((field) => (
{field.field}
))}
); export default SettingsForm;