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 (
{/* Header avec breadcrumb intégré */}
Libraries / {library.name}

{icon} {title}

{/* Info Bar - Version améliorée */}
{/* Path */}
{library.root_path}
{/* Divider */} {/* Book count */}
{library.book_count} book{library.book_count !== 1 ? 's' : ''}
{/* Divider */} {/* Status */} {library.enabled ? "Enabled" : "Disabled"}
{/* Filter Info (optionnel) */} {filterInfo && (

{filterInfo.label}

{filterInfo.clearLabel}
)}
); }