mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-21 22:55:56 -04:00
next-mdx-remote v4 (#737)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
// Bundle these components by default:
|
||||
export { default as Image } from "../components/Image/Image";
|
||||
export { default as Figure } from "../components/Figure/Figure";
|
||||
// `code` is intentionally lowercase here -- replaces `<code>` tag from remark
|
||||
export { default as code } from "../components/CodeBlock/CodeBlock";
|
||||
|
||||
// All of these components are technically passed into all posts, but next/dynamic ensures they're loaded only
|
||||
// when they're referenced in the individual mdx files.
|
||||
export const Video = dynamic(() => import("../components/Video/Video"));
|
||||
export const YouTube = dynamic(() => import("../components/YouTubeEmbed/YouTubeEmbed"));
|
||||
export const Tweet = dynamic(() => import("../components/TweetEmbed/TweetEmbed"));
|
||||
export const Gist = dynamic(() => import("../components/GistEmbed/GistEmbed"));
|
||||
|
||||
// one-offs for specific posts
|
||||
export const OctocatLink = dynamic(() => import("../components/OctocatLink/OctocatLink"));
|
||||
Reference in New Issue
Block a user