import { forwardRef } from "react"; import { useTreeApi } from "../context"; import { Cursor } from "./cursor"; export const ListOuterElement = forwardRef(function Outer( props: React.HTMLProps, ref, ) { const { children, ...rest } = props; const tree = useTreeApi(); return (
{ if (tree.props.disableDeselectOnClick) return; if (e.currentTarget === e.target) tree.deselectAll(); }} > {children}
); }); export const DropContainer = () => { const tree = useTreeApi(); return (
); };