import { MessageSquareIcon, NotebookTextIcon, TrashIcon } from 'lucide-react' import { type CSSProperties } from 'react' import { cn, ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuTrigger } from 'ui' import { rowClassName } from './ExplorerLayout.constants' import { DynamicLink } from '@/components/ui/DynamicLink' interface ExplorerNavItemProps { href: string type: 'notebook' | 'chat' name: string description?: string isActive?: boolean style?: CSSProperties onDoubleClick: () => void onSelectDelete: () => void } export const ExplorerNavItem = ({ href, type, name, description, isActive = false, style, onDoubleClick, onSelectDelete, }: ExplorerNavItemProps) => { return ( {type === 'notebook' ? ( ) : ( )} {name} {!!description && ( {description} )} Delete {type} ) }