README
@nvest/trade-strean-videoplayer
This Is The Trade Stream Videoplayer Sidebar
Props To Pass
videoShowThe Object Pass To The Video Player The Object May Containimage,videoUrl,title,descas properties and set null or false to hidesetVideoShowFunction To Set The Value Of videoShownavbarNavbar Id To Get The Video List Inside
Example Implementation
import React, { useContext, useEffect, useState } from "react";
import VidPlayer from "@nvest/trade-strean-videoplayer";
import { BankContext } from "../../context/Context";
function VideoPlayer() {
const { videoShow, setVideoShow } = useContext(BankContext);
return (
<VidPlayer
videoShow={videoShow}
setVideoShow={setVideoShow}
navbar="5fb318108efdfb791cb29ce5"
/>
);
}
export default VideoPlayer;