mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 16:07:01 +00:00
25 lines
515 B
TypeScript
25 lines
515 B
TypeScript
import dynamic from 'next/dynamic';
|
|
|
|
const DynamicContentManager = dynamic(() => import('components/layout/dynamic-content-manager'));
|
|
interface ReusableSectionProps {
|
|
section: {
|
|
existingSection: {
|
|
section: {
|
|
sectionType: [];
|
|
};
|
|
};
|
|
};
|
|
}
|
|
|
|
const ReusableSection = ({ section }: ReusableSectionProps) => {
|
|
const data = section.existingSection.section.sectionType;
|
|
|
|
if (!data) {
|
|
return;
|
|
}
|
|
|
|
return <DynamicContentManager content={data} />;
|
|
};
|
|
|
|
export default ReusableSection;
|