import clsx from "clsx"; import { useState } from "react"; interface Props { type: "email" | "text" | "password" | "tel" | "number" | "textarea"; roundness?: "full" | "xl"; required?: boolean; label?: string; placeholder?: string; defaultValue?: string | number; value?: string | number; className?: string; disabled?: boolean; max?: number; name: string; onChange: (value: string) => void; } export default function Input({ type, label, placeholder, name, required = false, value, defaultValue, max, className, roundness = "full", disabled = false, onChange, }: Props) { const [showPassword, setShowPassword] = useState(false); if (type === "textarea") { return (