mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-09-13 23:45:30 -04:00
* scss isn't worth the technical/mental overhead anymore * try to translate my old Hugo pygments themes * update lockfile * consolidate .hljs classes
15 lines
403 B
TypeScript
15 lines
403 B
TypeScript
import dynamic from "next/dynamic";
|
|
import type { ReactPlayerProps } from "react-player";
|
|
|
|
import styles from "./Video.module.css";
|
|
|
|
const ReactPlayer = dynamic(() => import("react-player/lazy"));
|
|
|
|
const Video = (props: ReactPlayerProps) => (
|
|
<div className={styles.wrapper}>
|
|
<ReactPlayer className={styles.react_player} width="100%" height="100%" {...props} />
|
|
</div>
|
|
);
|
|
|
|
export default Video;
|