securityos/components/apps/VideoPlayer/index.tsx

18 lines
654 B
TypeScript

import AppContainer from "components/apps/AppContainer";
import StyledVideoPlayer from "components/apps/VideoPlayer/StyledVideoPlayer";
import useVideoPlayer from "components/apps/VideoPlayer/useVideoPlayer";
import type { ComponentProcessProps } from "components/system/Apps/RenderComponent";
const VideoPlayer: FC<ComponentProcessProps> = ({ id }) => (
<AppContainer
StyledComponent={StyledVideoPlayer}
id={id}
useHook={useVideoPlayer}
>
{/* eslint-disable-next-line jsx-a11y/media-has-caption */}
<video className="video-js vjs-big-play-centered" autoPlay />
</AppContainer>
);
export default VideoPlayer;