import { InputHTMLAttributes, ReactNode } from "react"; import { cn } from "@/utils/cn"; interface InputProps extends InputHTMLAttributes { label?: string; error?: string; rightIcon?: ReactNode; } export function Input({ label, error, rightIcon, className, ...props }: InputProps) { return (
{label && ( )}
{rightIcon && (
{rightIcon}
)}
{error &&

{error}

}
); }