"use client" // Delt "Skriv ut"-meny -- lenker til de tre rundekoblede utskriftssidene // (ADR-097). Brukt fra RoundGroupsPanel (individuell) og økt-visningene // (Cup) -- ekte gjenbruk, ikke en tidlig abstraksjon. import Link from "next/link" import { Printer } from "lucide-react" import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu" export function PrintMenu({ organizationId, tournamentId, roundId, sessionId, includeCartTags = true, }: { organizationId: string tournamentId: string roundId?: string sessionId?: string includeCartTags?: boolean }) { const scope = roundId ? `roundId=${roundId}` : `sessionId=${sessionId}` const href = (kind: "scorecard" | "startlist" | "cart-tags") => `/tournaments/${tournamentId}/print/${kind}?org=${organizationId}&${scope}` return ( Scorekort} /> Startliste} /> {includeCartTags && Cart-tags} />} ) }