import { getCollection } from 'lib/shopify'; import { cn } from 'lib/utils'; import Link from 'next/link'; const CollectionLink = async ({ collectionLinkId, anchorText, className }: { collectionLinkId: string; anchorText: string; className?: string; }) => { const collection = await getCollection({ id: collectionLinkId }); if (!collection) return null; return ( {anchorText} ); }; export default CollectionLink;