Henrik Larsson 1baa3c1f8d Sanity fixes
2023-08-21 08:13:13 +02:00

24 lines
460 B
TypeScript

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;