import styles from "./index.module.scss"; import SearchIcon from "@/app/icons/search.svg"; export interface SearchProps { value?: string; onSearch?: (v: string) => void; placeholder?: string; } const Search = (props: SearchProps) => { const { placeholder = "", value, onSearch } = props; return (
{ e.preventDefault(); onSearch?.(e.target.value); }} />
); }; export default Search;