import React, { InputHTMLAttributes } from 'react'; interface InputProps extends InputHTMLAttributes { label?: string; icon?: React.ReactNode; error?: string; } export default function Input({ label, icon, error, className = '', ...props }: InputProps) { return (
{label && }
{icon && (
{icon}
)}
{error && {error}}
); }