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