mirror of
https://github.com/vercel/commerce.git
synced 2025-07-27 04:01:23 +00:00
🎨 styles: home video
:%s
This commit is contained in:
19
src/components/common/VideoPlayer/VideoPlayer.tsx
Normal file
19
src/components/common/VideoPlayer/VideoPlayer.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
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;
|
@@ -14,3 +14,4 @@ export { default as Banner} from './Banner/Banner'
|
||||
export { default as Footer} from './Footer/Footer'
|
||||
export { default as MenuDropdown} from './MenuDropdown/MenuDropdown'
|
||||
export { default as NotiMessage} from './NotiMessage/NotiMessage'
|
||||
export { default as VideoPlayer} from './VideoPlayer/VideoPlayer'
|
||||
|
Reference in New Issue
Block a user