import * as React from 'react'; import { clsx } from 'clsx'; import { AlertBanner } from './AlertBanner.js'; export interface FormSectionProps extends Omit, 'title'> { title: React.ReactNode; description?: React.ReactNode; error?: React.ReactNode; actions?: React.ReactNode; } export function FormSection({ title, description, error, actions, className, children, ...props }: FormSectionProps) { return (

{title}

{description && (

{description}

)}
{actions &&
{actions}
}
{error && {error}} {children}
); }