import React from 'react';
import classnames from 'classnames';
import { useStyles } from './styles';
export var RCTreeSwitchRenderer = function (_a) {
    var node = _a.node;
    var styles = useStyles();
    return !node.isLeaf ? (React.createElement("div", { className: styles.switcherButtonWrapper },
        React.createElement("div", { "aria-label": node.expanded ? 'Collapse' : 'Expand', className: classnames(styles.switcherButton, node.expanded ? styles.collapseButton : styles.expandButton) }))) : null;
};
