OUR STORES COMPONENT
Display multiple stores in grid or list layout with search and filtering.
PROPS
| Prop | Type | Description |
|---|---|---|
| stores | Store[] | Array of stores to display |
| layout | 'grid' | 'list' | Display layout |
| searchable | boolean | Enable search functionality |
| onStoreClick | (store) => void | Store click handler |
Interactive Example
1<StoreList2 stores={stores}3 layout="grid"4 searchable5 onStoreClick={(store) => router.push(`/stores/${store.id}`)}6/>USAGE EXAMPLES
COMPLETE IMPLEMENTATION
1import { OurStores } from '@/components/fanbace/store';2import { useStores } from '@/lib/sdk';3 4export default function StoresPage() {5 const { stores, loading } = useStores();6 7 return (8 <div>9 <h1>Explore Stores</h1>10 <OurStores11 stores={stores}12 loading={loading}13 layout="grid"14 searchable15 />16 </div>17 );18}
