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