import { getCollectionProducts } from 'lib/fourthwall'; import Link from 'next/link'; import { GridTileImage } from './grid/tile'; export async function Carousel({currency}: {currency: string}) { // Collections that start with `hidden-*` are hidden from the search page. const products = await getCollectionProducts({ collection: process.env.NEXT_PUBLIC_FW_COLLECTION || '', currency, }); if (!products?.length) return null; // Purposefully duplicating products to make the carousel loop and not run out of products on wide screens. const carouselProducts = [...products, ...products, ...products]; return (