import { ReactNode } from "react"; import { Button } from "@/components/ui/button"; import { TreeSearchControls } from "@/components/admin"; import { TreeViewContainer } from "@/components/admin"; interface TreeViewPageProps { title: string; description: string; searchTerm: string; onSearchChange: (term: string) => void; onExpandAll: () => void; onCollapseAll: () => void; searchPlaceholder: string; hasContent: boolean; isLoading?: boolean; loadingMessage?: string; emptyState: ReactNode; headerActions?: ReactNode; children: ReactNode; } export function TreeViewPage({ title, description, searchTerm, onSearchChange, onExpandAll, onCollapseAll, searchPlaceholder, hasContent, isLoading = false, loadingMessage = "Chargement...", emptyState, headerActions, children, }: TreeViewPageProps) { return (
{description}