mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-12-02 16:11:50 -05:00
directly (and still dynamically) assign a few of the mdx components
This commit is contained in:
9 files changed
+43
-44
No files matched your search
File renamed without changes.
@@ -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;
|
||||
Reference in new issue
Block a user