import clsx from 'clsx'; import React, { forwardRef } from 'react'; import type { TreeItemComponentType, TreeItemComponentProps, } from '../../types'; import './SimpleTreeItemWrapper.css'; export const SimpleTreeItemWrapper: TreeItemComponentType<{}, HTMLDivElement> = 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, ...rest } = props; return (
  • {!disableSorting && showDragHandle !== false && (
    )} {!manualDrag && !hideCollapseButton && !!onCollapse && !!childCount && (
  • ); });