'use client';
import { useId, type InputHTMLAttributes, type ReactNode } from 'react';
import { useFormStatus } from 'react-dom';
import { Button, type ButtonProps } from '@/components/ui/Button';
import { cx } from '@/lib/cx';
export interface FieldProps extends InputHTMLAttributes {
label: string;
hint?: string;
}
export function Field({ label, hint, className, id, ...rest }: FieldProps) {
// L'indication est rattachée par `aria-describedby` et non laissée dans le
// `