"use client"; import * as React from "react"; import { cn } from "./lib/utils"; export interface PassportStamp { id: string; country: string; date: string; color?: string; unlocked?: boolean; } export interface PassportStampGridProps extends React.HTMLAttributes { stamps: PassportStamp[]; columns?: number; } export function PassportStampGrid({ stamps, columns = 3, className, ...props }: PassportStampGridProps) { return (
{stamps.map((stamp) => { const open = stamp.unlocked !== false; return (
{open ? "✦" : "?"} {open ? stamp.country : "Locked"} {stamp.date}
); })}
); }