diff --git a/admin/components/VideoPlayer/index.tsx b/admin/components/VideoPlayer/index.tsx new file mode 100644 index 0000000..117346d --- /dev/null +++ b/admin/components/VideoPlayer/index.tsx @@ -0,0 +1,45 @@ +import { useState } from "react"; +import Image from "next/image"; +interface VideoPlayerProps { + src: string; + poster: string; + classes: string; +} + +const VideoPlayer = ({ src, poster, classes }: VideoPlayerProps) => { + const [loaded, setLoaded] = useState(false); + + const handleVideoLoaded = () => { + setLoaded(true); + }; + + return ( +
Click to upload
+video thumbnail
+PNG, JPG or JPEG
+- Click to upload -
+Click to upload
video for dish
Video MP4