import { Dispatch, SetStateAction } from "react"; import { useTranslations } from "next-intl"; type SearchBarProps = { tournamentFilter: string; setTournamentFilter: Dispatch>; }; const SearchBar = ({ tournamentFilter, setTournamentFilter, }: SearchBarProps) => { const t = useTranslations("Tournaments"); return (
setTournamentFilter(e.target.value)} />
); }; export default SearchBar;