diff --git a/app/games/[id]/page.js b/app/games/[id]/page.js index 227dbcd..ee13dfd 100644 --- a/app/games/[id]/page.js +++ b/app/games/[id]/page.js @@ -6,6 +6,13 @@ import { useState } from "react"; import { HeartFilledIcon, HeartIcon } from "@radix-ui/react-icons"; import TournamentSection from "../../../components/TournamentSection"; import { ListFilter } from "lucide-react"; +import { Button } from "../../../@/components/ui/button"; +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuSeparator, + DropdownMenuTrigger, +} from "../../../components/ui/dropdown-menu"; export default function GamePage({ params }) { const [isFavourite, setIsFavourite] = useState(false); @@ -18,6 +25,25 @@ export default function GamePage({ params }) { setIsFavourite(!isFavourite); }; + const [filters, setFilters] = useState({ + entryFee: "", + mode: "", + status: "", + }); + + const handleFilterChange = (e) => { + const { name, value } = e.target; + setFilters((prev) => ({ ...prev, [name]: value })); + }; + + const clearFilters = () => { + setFilters({ + entryFee: "", + mode: "", + status: "", + }); + }; + return (