import Link from "next/link"; import { Card, Badge } from "./ui"; 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 function LibrarySubPageHeader({ library, title, icon, iconColor = "text-primary", filterInfo }: LibrarySubPageHeaderProps) { return (
{library.root_path}
{filterInfo.label}
{filterInfo.clearLabel}