import 'server-only'; import Link from 'next/link'; import Image from 'next/image'; import { getCollectionProducts, getMenu } from 'commerce/shopify'; import styles from './styles.module.scss'; import { PriceRanges } from '/components/price'; import { getTags, listTags } from '/util'; export async function HomeProduct({ product }) { const featuredImage = product?.images?.[0]; const tags = await getTags({ product }); return ( {/* TODO: optimize srcset (adjusting based on featured status) */}
{featuredImage?.altText}

{product?.title}

{tags && tags.length > 0 && (

{listTags({ tags })}

)}
); } const productIsFeatured = product => product?.collections?.nodes ?.map(collection => collection?.handle) .includes('featured'); //TODO: suspense export async function HomeProductsList({ collection }) { const products = await getCollectionProducts({ collection, }); return ( <> {products.length === 0 ? (

{`No products found`}

) : ( )} ); } //TODO: suspense export async function TypesNav() { const typesMenu = await getMenu('types-nav'); return (

Filter: {typesMenu?.map((menuItem, i) => ( {`${menuItem?.title}`} {`${ i == typesMenu.length - 1 ? '.' : ',' } `} ))}

); } export const CartLink = () => ( /*
*/ Cart ( 0 ) //
); export const HomeNav = () => (
Information
); //TODO: finish styling, populate links from footerMenu, add rest of footer export async function HomeFooter() { const footerMenu = await getMenu('footer'); return (

For additional creative resources, visit the following:
{/* Moodboard, Soundtrack, Twitter, Instagram. */} <> {footerMenu?.map(item => ( {item?.title} ))}

To discuss creative opportunities and potential
collaborations, visit{' '} Aug.Services for more information.

shop.aug.svcs
); }