import { type InputHTMLAttributes, useId } from 'react';
interface InputProps extends InputHTMLAttributes {
label: string;
error?: string;
}
export function Input({ label, error, className = '', ...props }: InputProps) {
const id = useId();
return (
{error &&
{error}
}
);
}