mirror of
https://github.com/vercel/commerce.git
synced 2025-05-13 05:07:51 +00:00
23 lines
610 B
TypeScript
23 lines
610 B
TypeScript
import Tag from 'components/tag';
|
|
import { Metaobject } from 'lib/shopify/types';
|
|
import { Suspense } from 'react';
|
|
import Tabs, { TabsPlaceholder } from './tabs';
|
|
|
|
const DynamicContent = ({ content }: { content: Metaobject }) => {
|
|
const { id, type, title, ...fields } = content;
|
|
|
|
return (
|
|
<div>
|
|
<Tag text="Learn More" />
|
|
<h3 className="mb-5 mt-3 text-3xl font-semibold text-content-strong lg:text-4xl">
|
|
{content.title}
|
|
</h3>
|
|
<Suspense fallback={<TabsPlaceholder />}>
|
|
<Tabs fields={fields} />
|
|
</Suspense>
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default DynamicContent;
|