From bd97481508a7cfc79e5ec85ae867ce75a10afe33 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Sat, 15 Feb 2025 13:14:34 +0000 Subject: [PATCH] fix: add proper types to dynamic MDX content import Co-Authored-By: G --- app/blog/layout.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/blog/layout.tsx b/app/blog/layout.tsx index 8dae61c..75de128 100644 --- a/app/blog/layout.tsx +++ b/app/blog/layout.tsx @@ -1,9 +1,11 @@ import React from 'react'; import dynamic from 'next/dynamic'; +import { MDXContent as MDXContentType } from './mdx-provider'; -const MDXContent = dynamic(() => import('./mdx-provider'), { - ssr: true -}); +const MDXContent = dynamic( + () => import('./mdx-provider').then(mod => mod.default), + { ssr: true } +); export default function BlogLayout({ children,