"use client"; import React from "react"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faClose } from "@fortawesome/free-solid-svg-icons"; // import styles from "./index.module.scss"; export default function OwnInput({ onChange, type = "text", name, placeholder, clearable, disabled = false, className, inputClassName = "", id, maxLength = 999, ...other }) { return (
onChange && onChange(e.target?.value)} className={`w-full placeholder:text-[#FFFFFF80] text-[16px] focus:text-[16px] ${inputClassName}`} /> {clearable && other?.value != "" && (
{ onChange && onChange(""); }} />
)}
); }