1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-28 15:23:49 -05:00
Files
jarv.is/components/embeds/Video.tsx

10 lines
319 B
TypeScript

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;