mirror of
https://github.com/vercel/commerce.git
synced 2025-07-12 07:21:21 +00:00
19 lines
369 B
TypeScript
19 lines
369 B
TypeScript
import React from 'react';
|
|
import ReactPlayer from 'react-player/lazy'
|
|
|
|
interface Props {
|
|
url: string,
|
|
controls?: boolean,
|
|
muted?: boolean,
|
|
}
|
|
|
|
const VideoPlayer = ({ url, controls, muted }: Props) => {
|
|
return (
|
|
<ReactPlayer
|
|
url={url}
|
|
controls={controls}
|
|
muted={muted} />
|
|
);
|
|
};
|
|
|
|
export default VideoPlayer; |