"use client"; import Link from "next/link"; import type { ReactNode } from "react"; import { Bell, ChevronLeft } from "lucide-react"; import { useTranslation } from "react-i18next"; import { LanguageSwitcher } from "@/components/language-switcher"; import { playerHeaderControl, playerPageHeader, playerPageInset, } from "@/lib/player-spacing"; import { cn } from "@/lib/utils"; type PlayerPanelProps = { title: string; children: ReactNode; backHref?: string; backLabel?: string; className?: string; containerClassName?: string; }; export function PlayerPanel({ title, children, backHref = "/hall", backLabel, className, containerClassName, }: PlayerPanelProps) { const { t } = useTranslation("common"); const { t: tp } = useTranslation("player"); const resolvedBackLabel = backLabel ?? tp("panel.home"); return (