passing a custom link component to mdx was unnecessary

This commit is contained in:
2022-01-12 14:20:45 -05:00
parent e6ead77f5f
commit b51e8a38ce
31 changed files with 34 additions and 92 deletions
+10
View File
@@ -0,0 +1,10 @@
import ReactPlayer from "react-player/lazy";
import type { ReactPlayerProps } from "react-player";
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;