import { GridTileImage } from 'components/grid/tile'; import { getCollectionProducts } from 'lib/shopify'; import type { Product } from 'lib/shopify/types'; import Link from 'next/link'; function ThreeItemGridItem({ item, size, priority }: { item: Product; size: 'full' | 'half'; priority?: boolean; }) { return (
); } export async function ThreeItemGrid() { const homepageItems = await getCollectionProducts({ tag: 'featured' }); if (!homepageItems[0] || !homepageItems[1] || !homepageItems[2]) return null; const [firstProduct, secondProduct, thirdProduct] = homepageItems; return (
); }