import * as React from "react" import { cn } from "../lib/utils" import { Label } from "../ui/label" /** Подзаголовок группы полей формы. */ export function FormSection({ title, children }: { title: string; children: React.ReactNode }) { return (

{title}

{children}
) } /** Подпись, поле, подсказка или ошибка под ним. */ export function FormField({ label, htmlFor, hint, error, className, children, }: { label: string htmlFor?: string hint?: string error?: string className?: string children: React.ReactNode }) { return (
{children} {error ? (

{error}

) : hint ? (

{hint}

) : null}
) }