import { cn } from "@/lib/utils" import { VideoInfo } from "@/types" import { VideoCard } from "../video-card" export function VideoList({ videos, layout = "flex", className = "", }: { videos: VideoInfo[] /** * Layout mode * * This isn't necessarily based on screen size, it can also be: * - based on the device type (eg. a smart TV) * - a design choice for a particular page */ layout?: "grid" | "flex" className?: string }) { return (
{videos.map((video) => ( ))}
) }