import 'server-only';
import Link from 'next/link';
import Image from 'next/image';
import { getCollectionProducts, getMenu } from 'lib/shopify';
import { PriceRanges } from '/components/price.js';
import styles from './styles.module.scss';
export async function HomeProduct({ product }) {
const featuredImage = product?.images?.[0];
const collections = product?.collections?.nodes;
return (
{product?.title}
{collections && collections.length > 0 && ({`(${collections ?.map(collection => collection?.title) .join(', ')})`}
)}{`No products found`}
) : (Filter: {typesMenu?.map((menuItem, i) => ( {`${menuItem?.title}`} {`${ i == typesMenu.length - 1 ? '.' : ',' } `} ))}
); } export const HomeNav = () => (