diff --git a/src/components/content/carousels/CoursesCarousel.js b/src/components/content/carousels/CoursesCarousel.js
index f7b09ce..093003d 100644
--- a/src/components/content/carousels/CoursesCarousel.js
+++ b/src/components/content/carousels/CoursesCarousel.js
@@ -73,7 +73,7 @@ export default function CoursesCarousel() {
itemTemplate={(item) =>
!processedCourses.length ?
{document?.readTime || "5 min"} read
diff --git a/src/components/content/carousels/templates/VideoTemplate.js b/src/components/content/carousels/templates/VideoTemplate.js index 571b944..af57677 100644 --- a/src/components/content/carousels/templates/VideoTemplate.js +++ b/src/components/content/carousels/templates/VideoTemplate.js @@ -15,7 +15,7 @@ import useWindowWidth from "@/hooks/useWindowWidth"; import GenericButton from "@/components/buttons/GenericButton"; import appConfig from "@/config/appConfig"; -export function VideoTemplate({ video, isLesson }) { +export function VideoTemplate({ video, isLesson, showMetaTags }) { const { zaps, zapsLoading, zapsError } = useZapsSubscription({ event: video }); const [nAddress, setNAddress] = useState(null); const [zapAmount, setZapAmount] = useState(0); @@ -43,6 +43,13 @@ export function VideoTemplate({ video, isLesson }) { } }, [zaps, video]); + const shouldShowMetaTags = (topic) => { + if (!showMetaTags) { + return !["lesson", "document", "video", "course"].includes(topic); + } + return true; + } + if (zapsError) return{video?.duration || "5 min"} watch