fix: add proper types to dynamic MDX content import

Co-Authored-By: G <butaeff@gmail.com>
This commit is contained in:
Devin AIandcato committed 2025-02-15 13:14:34 +00:00
1 parent 89578a0912
commit bd97481508
1 file changed
+5 -3
+5 -3
View File
@@ -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<MDXContentType>(
() => import('./mdx-provider').then(mod => mod.default),
{ ssr: true }
);
export default function BlogLayout({
children,