1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-09-13 23:45:30 -04:00
Files
jarv.is/components/video/Video.tsx
Jake Jarvis 41d2b8c64b scss ➡️ vanilla css (#727)
* scss isn't worth the technical/mental overhead anymore

* try to translate my old Hugo pygments themes

* update lockfile

* consolidate .hljs classes
2022-01-07 16:17:14 -05:00

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;