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;
