import Footer from 'components/layout/footer'; import { SupportedLocale } from 'components/layout/navbar/language-control'; import HomeImage001 from '@images/home-images/home-image-001.webp'; import HomeImage002 from '@images/home-images/home-image-002.webp'; import HomeImage003 from '@images/home-images/home-image-003.webp'; import HomeImage004 from '@images/home-images/home-image-004.webp'; import HomeImage005 from '@images/home-images/home-image-005.webp'; import HomeImage006 from '@images/home-images/home-image-006.webp'; import HomeImage007 from '@images/home-images/home-image-007.webp'; import HomeImage008 from '@images/home-images/home-image-008.webp'; import clsx from 'clsx'; import { HomepageProducts } from 'components/grid/homepage-products'; import AboutNaraiPreview from 'components/layout/about-narai-preview'; import ConceptPreview from 'components/layout/concept-preview'; import LocationPreview from 'components/layout/location-preview'; import Navbar from 'components/layout/navbar'; import NewsletterSignup from 'components/layout/newsletter-signup'; import SagyobarPreview from 'components/layout/sagyobar-preview'; import Shoplist from 'components/layout/shoplist'; import StoriesPreview from 'components/layout/stories-preview'; import { BLOG_HANDLE } from 'lib/constants'; import { getCart, getProduct } from 'lib/shopify'; import { Product } from 'lib/shopify/types'; import { cookies } from 'next/headers'; import Image from 'next/image'; import { Suspense } from 'react'; export const runtime = 'edge'; const { SITE_NAME } = process.env; export const metadata = { title: SITE_NAME, description: SITE_NAME, openGraph: { type: 'website' } }; export default async function HomePage({ params: { locale } }: { params: { locale?: SupportedLocale }; }) { const cartId = cookies().get('cartId')?.value; let cart; if (cartId) { cart = await getCart(cartId); } const promotedItem: Product | undefined = await getProduct({ handle: 'gift-bag-and-postcard-set', language: locale?.toUpperCase() }); return (