From ed41cb8bf802f0e305b743a15010d06ae876bcf5 Mon Sep 17 00:00:00 2001 From: "DESKTOP-BC3NEC6\\chiefsoft" Date: Sat, 11 Feb 2023 19:59:29 -0500 Subject: [PATCH] Youtube video --- src/components/Cards/YouTubeCardStyle.jsx | 120 ++++++++++++++++++++++ src/components/Resources/VideoYouTube.jsx | 61 +++++++++++ src/components/Resources/index.jsx | 3 + 3 files changed, 184 insertions(+) create mode 100644 src/components/Cards/YouTubeCardStyle.jsx create mode 100644 src/components/Resources/VideoYouTube.jsx diff --git a/src/components/Cards/YouTubeCardStyle.jsx b/src/components/Cards/YouTubeCardStyle.jsx new file mode 100644 index 0000000..0af4233 --- /dev/null +++ b/src/components/Cards/YouTubeCardStyle.jsx @@ -0,0 +1,120 @@ +import React, { useState } from "react"; +import { Link } from "react-router-dom"; +// import { toast } from "react-toastify"; +import localImgLoad from "../../lib/localImgLoad"; +import Icons from "../Helpers/Icons"; + +export default function YouTubeCardStyle({ + className, + datas, + hidden = false, +}) { + const [addFavorite, setValue] = useState(datas.whishlisted); + const [options, setOption] = useState(false); + const favoriteHandler = () => { + if (!addFavorite) { + setValue(true); + } else { + setValue(false); + } + }; + return ( +
+
+
+
+
+

Video :

+

+ {datas.post_date} +

+
+
+
+ +
+
+
+