[site/mdx][s]: remove dynamic imports

This commit is contained in:
Khalil Ali 2022-06-07 18:38:33 +03:00 committed by GitHub
parent b368b841c3
commit 4be8f9a35a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 12 deletions

View File

@ -1,22 +1,12 @@
import React from "react";
import Head from "next/head";
import dynamic from "next/dynamic";
import { useMDXComponent } from "next-contentlayer/hooks";
import { Anchor } from "./Anchor";
import { Heading } from "./Heading";
import { Paragraph } from "./Paragraph";
import useHeadingsObserver from "../hooks/useHeadingsObserver";
const Anchor = dynamic(
() => import("./Anchor").then((module) => module.Anchor)
// {
// ssr: false,
// }
);
const Paragraph = dynamic(() =>
import("./Paragraph").then((module) => module.Paragraph)
);
const MdxContent = ({ body }) => {
const observer = useHeadingsObserver();