import { getCollectionProducts } from 'lib/shopware'; import { isSeoUrls } from 'lib/shopware/helpers'; import Link from 'next/link'; import { GridTileImage } from './grid/tile'; export async function Carousel() { const collectionName = isSeoUrls() ? 'Summer-BBQ/Hidden-Carousel-Category' : 'ff7bf3c59f1342a685844fbf8fdf9dc8'; const { products } = await getCollectionProducts({ collection: collectionName }); if (!products?.length) return null; return (
{[...products, ...products].map((product, i) => ( ))}
); }