feat: add categories and menus

This commit is contained in:
Victor Gerbrands
2023-05-10 16:47:59 +02:00
parent 52a1dddfc6
commit 8d70c0cdb5
9 changed files with 88 additions and 41 deletions

View File

@@ -1,10 +1,10 @@
import { getCollectionProducts } from 'lib/medusa';
import { getCategoryProducts } from 'lib/medusa';
import Image from 'next/image';
import Link from 'next/link';
export async function Carousel() {
// Collections that start with `hidden-*` are hidden from the search page.
const products = await getCollectionProducts('hidden-homepage-carousel');
const products = await getCategoryProducts('hidden-homepage-carousel');
if (!products?.length) return null;