import { jsx as _jsx } from "react/jsx-runtime";
import { TreeItem } from "./TreeItem.js";
/**
 * **Client Component**
 *
 * A reasonable default for rendering tree items that will extract all the
 * `ListItemChildrenProps` from the item and attempt to pass them into the
 * `TreeItem`.
 *
 * Look at the `Tree` component for an example of creating a custom
 * implementation.
 *
 * @remarks \@since 6.0.0
 */ export function DefaultTreeItemRenderer(props) {
    const { item: _item, parents, children: childItems } = props;
    const item = props.item;
    const { itemId, to, href, disabled, className, contentClassName, leftAddon, leftAddonType, leftAddonPosition, leftAddonClassName, leftAddonForceWrap, rightAddon, rightAddonType, rightAddonPosition, rightAddonClassName, rightAddonForceWrap, disableLeftAddonCenteredMedia, disableRightAddonCenteredMedia } = item;
    const children = item.name ?? item.children;
    return /*#__PURE__*/ _jsx(TreeItem, {
        to: to,
        href: href,
        depth: parents.length,
        childItems: childItems,
        className: className,
        contentClassName: contentClassName,
        itemId: itemId,
        disabled: disabled,
        leftAddon: leftAddon,
        leftAddonType: leftAddonType,
        leftAddonPosition: leftAddonPosition,
        leftAddonClassName: leftAddonClassName,
        leftAddonForceWrap: leftAddonForceWrap,
        rightAddon: rightAddon,
        rightAddonType: rightAddonType,
        rightAddonPosition: rightAddonPosition,
        rightAddonClassName: rightAddonClassName,
        rightAddonForceWrap: rightAddonForceWrap,
        disableLeftAddonCenteredMedia: disableLeftAddonCenteredMedia,
        disableRightAddonCenteredMedia: disableRightAddonCenteredMedia,
        children: children
    });
}

//# sourceMappingURL=DefaultTreeItemRenderer.js.map