import { FC } from 'react' import Link from 'next/link' import type { Product } from '@commerce/types/product' import { Grid } from '@components/ui' import { ProductCard } from '@components/product' import s from './HomeAllProductsGrid.module.css' import { getCategoryPath, getDesignerPath } from '@lib/search' import { Brand, Category } from '@commerce/types/site' interface Props { categories?: Category[] brands?: Brand[] products?: Product[] } const HomeAllProductsGrid: FC = ({ categories, brands, products = [], }) => { return (
  • All Categories
  • {categories?.map((cat: any) => (
  • {cat.name}
  • ))}
  • All Designers
  • {brands?.map(({ path, name }) => (
  • {name}
  • ))}
{products.map((product) => ( ))}
) } export default HomeAllProductsGrid