import Link from "next/link"; import { Card, Badge } from "./ui"; import { getServerTranslations } from "../../lib/i18n/server"; interface LibrarySubPageHeaderProps { library: { id: string; name: string; root_path: string; book_count: number; enabled: boolean; }; title: string; icon: React.ReactNode; iconColor?: string; filterInfo?: { label: string; clearHref: string; clearLabel: string; }; } export async function LibrarySubPageHeader({ library, title, icon, iconColor = "text-primary", filterInfo }: LibrarySubPageHeaderProps) { const { t } = await getServerTranslations(); return (
{library.root_path}
{filterInfo.label}
{filterInfo.clearLabel}