"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({ value, onChange, type = "text", name, placeholder, clearable, disabled, className, inputClassName, fontSize, id, }) { return (
onChange(e.target?.value)} value={value} className={`w-full placeholder:text-[#FFFFFF80] ${inputClassName}`} style={{ fontSize: `${fontSize || 16}px` }} /> {clearable && value != "" && (
{ onChange && onChange(""); }} />
)}
); }