import clsx from 'clsx'; import React, { forwardRef } from 'react'; import type { TreeItemComponentProps } from '../../types'; import './SimpleTreeItemWrapper.css'; export const SimpleTreeItemWrapper = forwardRef< HTMLDivElement, React.PropsWithChildren> >((props, ref) => { const { clone, depth, disableSelection, disableInteraction, disableSorting, ghost, handleProps, indentationWidth, indicator, collapsed, onCollapse, onRemove, item, wrapperRef, style, hideCollapseButton, childCount, manualDrag, showDragHandle, disableCollapseOnItemClick, isLast, parent, className, contentClassName, isOver, isOverParent, ...rest } = props; return (
  • {!disableSorting && showDragHandle !== false && (
    )} {!manualDrag && !hideCollapseButton && !!onCollapse && !!childCount && (
  • ); }) as ( p: React.PropsWithChildren< TreeItemComponentProps & React.RefAttributes > ) => React.ReactElement;