mirror of
https://github.com/vercel/commerce.git
synced 2025-09-07 16:30:17 +00:00
feat: add categories and menus
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user