import { Section } from "@/components/Section" import SectionHeader from "@/components/Section/Header/Deprecated" import SectionLink from "@/components/Section/Link" import type { DynamicContentProps } from "@/types/components/blocks/dynamicContent" export default function SectionWrapper({ children, dynamic_content, }: React.PropsWithChildren) { const displayHeader = !!( dynamic_content.link || dynamic_content.subtitle || dynamic_content.title ) return (
{displayHeader ? ( ) : null} {children} {dynamic_content.link ? ( ) : null}
) }