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

{error}

)}
); }