import { cn } from "@/lib/utils" import { MediaDisplayLayout, VideoInfo } from "@/types" import { TrackCard } from "../track-card" import { VideoCard } from "../video-card" export function MediaList({ items, type = "video", layout = "grid", className = "", onSelect, }: { items: 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?: MediaDisplayLayout /** * Content type * * Used to change the way we display elements */ type?: "video" | "track" className?: string onSelect?: (media: VideoInfo) => void }) { return (