import { cn } from "@/lib/utils" import { VideoInfo } from "@/types" import { VideoCard } from "../video-card" export function VideoList({ videos, layout = "grid", className = "", onSelect, }: { 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" | "horizontal" | "vertical" className?: string onSelect?: (video: VideoInfo) => void }) { return (
{videos.map((video, i) => ( ))}
) }