import { useRosettaColors } from "@/app/hooks/useRosettaColors"; import { Flex, Input, Text } from "@mantine/core"; import { IconSearch } from "@tabler/icons-react"; import { forwardRef, useState } from "react"; interface InputCustomPlaceholderProps { onChange?: (e: React.ChangeEvent) => void; onBlur?: () => void; } const InputCustomPlaceholder = forwardRef((props: InputCustomPlaceholderProps, ref) => { const colors = useRosettaColors(); const [isFocused, setIsFocused] = useState(false); const [value, setValue] = useState(""); const handleFocus = () => setIsFocused(true); const handleBlur = () => { setIsFocused(false); setValue(""); if (props.onBlur) props.onBlur(); }; const handleChange = (e: React.ChangeEvent) => { setValue(e.currentTarget.value); if (props.onChange) props.onChange(e); } return (
Search
); }); export default InputCustomPlaceholder;