mirror of
https://github.com/vercel/commerce.git
synced 2025-05-15 14:06:59 +00:00
27 lines
467 B
TypeScript
27 lines
467 B
TypeScript
'use client'
|
|
|
|
import DynamicContentManager from '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; |