import { notFound, redirect } from 'next/navigation'; import { getImageProps } from 'next/image'; import { ScaleOfImpact } from '@/components/blocks/ScaleOfImpact'; import JsonLd from '@/components/JsonLd'; import { SITE_URL } from '@/lib/schema'; import { getPostBySlug, getAdjacentPosts, getReadingTime, getHeadings, } from '@/lib/blog'; import { Metadata } from 'next'; import Link from 'next/link'; import Image from 'next/image'; import PostNavigation from '@/components/blog/PostNavigation'; import PowerCTA from '@/components/blog/PowerCTA'; import TableOfContents from '@/components/blog/TableOfContents'; import { Heading } from '@/components/ui'; import { setRequestLocale } from 'next-intl/server'; import BlogEngagementTracker from '@/components/analytics/BlogEngagementTracker'; import { MDXRemote } from 'next-mdx-remote/rsc'; const mdxComponents = { Heading, h1: (props: any) => , // Hidden because Hero handles H1 h2: (props: any) => , h3: (props: any) => , h4: (props: any) => , ScaleOfImpact, ResponsiveImage: (props: any) => { let src = props.src; if (typeof src === 'string' && src.startsWith('/_next/image')) { try { const urlParam = new URLSearchParams(src.split('?')[1]).get('url'); if (urlParam) src = decodeURIComponent(urlParam); } catch (_e) { // Ignore invalid URL parsing } } const { props: { srcSet, src: finalSrc, sizes } } = getImageProps({ src, alt: props.alt || '', width: 1920, height: 1080, sizes: '(max-width: 768px) 100vw, (max-width: 1200px) 75vw, 50vw', quality: 80, }); return ( ); }, p: (props: any) =>

, ul: (props: any) =>