diff --git a/frontend/leeds-beer-quest/src/components/dropdown-filter.tsx b/frontend/leeds-beer-quest/src/components/dropdown-filter.tsx new file mode 100644 index 0000000..5bf0ba1 --- /dev/null +++ b/frontend/leeds-beer-quest/src/components/dropdown-filter.tsx @@ -0,0 +1,34 @@ +import { ListItemText, MenuItem, Select, SelectChangeEvent } from "@mui/material"; +import { useState } from "react"; + +export type TFilter = { + id: number; + name: string; +} + +export type TDropdownFilterProps = { + filters: TFilter[]; +} + +export function DropdownFilter(props: TDropdownFilterProps) { + const [selectedTags, setSelectedTags] = useState([]); + + const handleChange = (event: SelectChangeEvent) => { + const { value } = event.target; + setSelectedTags(typeof value == "string" ? value.split(",") : value); + }; + + return( + + ); +} \ No newline at end of file