import { jsx as _jsx } from "react/jsx-runtime";
import { useStyleConfig, vui } from '../core';
import Icon from '../icon';
import { cs } from '../utils';
import { useTreeContext } from './context';
/** Displays an icon on the side of the TreeItem. */
export const TreeIcon = vui((props, ref) => {
    const { className, ...rest } = props;
    const styles = useStyleConfig('Tree', useTreeContext());
    return _jsx(Icon, { className: cs('vui-treeIcon', className), ref: ref, size: "xs", ...styles.icon, ...rest });
});
TreeIcon.displayName = 'TreeIcon';
export default TreeIcon;
//# sourceMappingURL=treeIcon.js.map