'use client'; import React from 'react'; import BlurHashImage from '@/components/ui/BlurHashImage'; import { HierarchyBrandItem } from '@/services/api/catalogService'; interface BrandSelectorProps { brands: HierarchyBrandItem[]; selectedBrandId: string | null; onSelectBrand: (brandId: string | null) => void; } export const BrandSelector: React.FC = ({ brands, selectedBrandId, onSelectBrand, }) => { if (!brands || brands.length === 0) return null; return (

Select Brand

{/* All Brands Option */} {/* Brand Items */} {brands.map((brand) => { const isSelected = selectedBrandId === brand.brand_id; return ( ); })}
); };