import classnames from "classnames";
import { useGlobalState } from "../state/global";
type SearchSuggestionsProps = {
handlePress: (term: string) => void;
handleDelete?: (term: string) => void;
terms: string[];
showUnderline?: boolean;
className?: string;
};
export const SearchSuggestions = ({
handlePress,
handleDelete,
showUnderline = true,
terms,
className = "unlimited-photos-suggestions-list",
}: SearchSuggestionsProps) => {
const { searchTerm, currentTheme, importing } = useGlobalState();
return (
{terms.map((term) => (
-
{handleDelete && (
)}
))}
);
};