import { cn } from '@heroui/react'; import { ReactNode } from 'react'; interface TreeItemProps { style: React.CSSProperties; isSelected: boolean | null; onClick: () => void; toggleButton?: ReactNode; icon: ReactNode; label: string; actions?: ReactNode; className?: string; } export default function TreeItem({ style, isSelected, onClick, toggleButton, icon, label, actions, className, }: TreeItemProps) { const baseClass = ''; const selectedClass = `${baseClass} bg-neutral-200 dark:bg-neutral-700 dark:hover:bg-neutral-600 hover:bg-neutral-300`; return (
{toggleButton ||
} {icon} {label} {actions &&
{actions}
}
); }