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

{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) => ( ))}
)}
{LABELS.HOMEPAGE.CHECK_OUT_OUR_YOUTUBE}
) }