diff --git a/src/components/dashboards/BrandFilter.tsx b/src/components/dashboards/BrandFilter.tsx index 92d47bc..002348f 100644 --- a/src/components/dashboards/BrandFilter.tsx +++ b/src/components/dashboards/BrandFilter.tsx @@ -3,6 +3,8 @@ import { cn } from "@/lib/utils"; import { useBrandFilter } from "@/src/hooks/useBrandFilter"; import { Button } from "../ui/button"; +import { ChevronRight } from "lucide-react"; +import { motion } from "framer-motion"; export function BrandFilter() { const { @@ -25,65 +27,76 @@ export function BrandFilter() { } return ( -
- - +
- {visibleBrands.map((brand) => { - const isActive = - selectedBrand?.toLowerCase() === brand.name.toLowerCase(); + - return ( +
+ {visibleBrands.map((brand) => { + const isActive = + selectedBrand?.toLowerCase() === brand.name.toLowerCase(); + + return ( + + ); + })} + + {!isExpanded && validBrands.length > 3 && ( - ); - })} + )} - {!isExpanded && validBrands.length > 3 && ( - - )} - - {isExpanded && ( - - )} + {isExpanded && ( + + )} +
-
+ ); }