import { cn } from "@/lib/utils/cn" import { CollectionInfo } from "@/types/general" import { CollectionCard } from "../collection-card" export function CollectionList({ collections = [], layout = "grid", className = "", onSelect, }: { collections: CollectionInfo[] /** * 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?: (collection: CollectionInfo) => void }) { return (
{collections.map((collection, i) => ( ))}
) }