import { SearchNormal } from "iconsax-reactjs"; import { forwardRef } from "react"; export type InputVariant = "primary" | "search"; type Props = { variant?: InputVariant; } & React.InputHTMLAttributes; const Input = forwardRef(({ variant = "search", className, type, ...props }, ref) => { const isSearch = variant === "search"; return (
{isSearch &&
); }); Input.displayName = "Input"; export default Input;