import React from 'react';
import { st, classes } from './SidebarSectionTitle.st.css.js';
import Text from '../Text';
import { SidebarContext } from '../Sidebar/SidebarAPI';
import { sidebarSkins } from '../Sidebar/constants';
import { WixDesignSystemContext } from '../WixDesignSystemProvider/context';
/** A title for the section within the sidebar */
class SidebarSectionTitle extends React.PureComponent {
    render() {
        const { dataHook, children } = this.props;
        return (React.createElement(WixDesignSystemContext.Consumer, null, () => (React.createElement(SidebarContext.Consumer, null, context => {
            const skin = (context && context.getSkin()) || sidebarSkins.dark;
            return (React.createElement(Text, { dataHook: dataHook, className: st(classes.root, { skin }), size: "tiny", weight: "bold" }, children));
        }))));
    }
}
SidebarSectionTitle.displayName = 'SidebarSectionTitle';
export default SidebarSectionTitle;
//# sourceMappingURL=SidebarSectionTitle.js.map