import React, { useState } from 'react'; import { FiSearch } from "react-icons/fi"; // Importing search icon from react-icons import "../../Components/SearchInput/PozoPublicSearchInput.scss"; const PozoPublicSearchInput = ({ label = "Search", placeholder = "Search...", value = "", onChange, width = "100%", height = "auto", searchIcon = , // Default search icon using React Icons disabled = false, className = "" }) => { const [inputValue, setInputValue] = useState(value); const handleInputChange = (e) => { setInputValue(e.target.value); if (onChange) onChange(e.target.value); // Call onChange from parent }; return (
{searchIcon}
); } export default PozoPublicSearchInput;