import { type InputHTMLAttributes } from "react";
interface InputFieldProps extends InputHTMLAttributes {
label: string;
error?: string;
}
export function InputField({
label,
error,
id,
name,
className = "",
...rest
}: InputFieldProps) {
const fieldId = id ?? name;
return (
{error &&
{error}
}
);
}