"use client" import { AppLink } from "../app-link" import { Icons } from "../icons" import { AppContent } from "../ui/app-content" import { Button } from "../ui/button" import { LABELS } from "@/app/labels" import { useYoutube } from "@/hooks/useYoutube" import { ArrowRight } from "lucide-react" import Image from "next/image" import Link from "next/link" interface Video { id: string title: string description: string thumbnailUrl: string publishedAt: string channelTitle: string url?: string } const VideoCard = ({ video, isPriority = false, }: { video: Video isPriority?: boolean }) => { return (
Video thumbnail

{video.title}

) } const VideoCardSkeleton = () => { return (
) } export const HomepageVideoFeed = () => { const { data: videos = [], isLoading, isError } = useYoutube() return (

{LABELS.HOMEPAGE.VIDEOS}

{isLoading ? ( ) : isError ? (

{LABELS.HOMEPAGE.ERROR_LOADING_VIDEOS}

) : (
{videos.slice(0, 3).map((video: Video, index: number) => ( ))}
)}
{LABELS.HOMEPAGE.CHECK_OUT_OUR_YOUTUBE}
) }