directly (and still dynamically) assign a few of the mdx components

This commit is contained in:
jake committed 2022-01-05 15:07:54 -05:00
1 parent fb491d7337
commit 2d44b58242
9 files changed
+43 -44

No files matched your search

@@ -1,14 +1,14 @@
import dynamic from "next/dynamic";
import type { ReactPlayerProps } from "react-player";
import styles from "./FullPageVideo.module.scss";
import styles from "./Video.module.scss";
const ReactPlayer = dynamic(() => import("react-player"));
const FullPageVideo = (props: ReactPlayerProps) => (
const Video = (props: ReactPlayerProps) => (
<div className={styles.wrapper}>
<ReactPlayer className={styles.react_player} width="100%" height="100%" {...props} />
</div>
);
export default FullPageVideo;
export default Video;