commerce/app/[locale]/shop-list/shop-list-detail.tsx
2023-11-12 17:11:15 +09:00

14 lines
369 B
TypeScript

'use server';
import Prose from 'components/prose';
import { getPage } from 'lib/shopify';
import { notFound } from 'next/navigation';
export default async function ShopListDetail({ language }: { language?: string }) {
const page = await getPage({ handle: 'shop-list', language });
if (!page) return notFound();
return <Prose html={page.body as string} />;
}