import { IconX } from "@tabler/icons-react"; import { FC } from "react"; interface Props { searchTerm: string; onSearch: (searchTerm: string) => void; } export const Search: FC = ({ searchTerm, onSearch }) => { const handleSearchChange = (e: React.ChangeEvent) => { onSearch(e.target.value); }; const clearSearch = () => { onSearch(""); }; return (
{searchTerm && ( )}
); };