mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-11-28 15:53:50 -05:00
next-mdx-remote -> mdx-bundler (#729)
This commit is contained in:
9
components/embeds/Video.tsx
Normal file
9
components/embeds/Video.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import ReactPlayer, { ReactPlayerProps } from "react-player/lazy";
|
||||
|
||||
const Video = (props: ReactPlayerProps) => (
|
||||
<div style={{ position: "relative", paddingTop: "56.25%" }}>
|
||||
<ReactPlayer width="100%" height="100%" style={{ position: "absolute", top: 0, left: 0 }} {...props} />
|
||||
</div>
|
||||
);
|
||||
|
||||
export default Video;
|
||||
Reference in New Issue
Block a user