import React from 'react';
import { st, classes } from './SidebarDivider.st.css.js';
import Divider from '../Divider';
import { SidebarContext } from '../Sidebar/SidebarAPI';
import { sidebarSkins } from '../Sidebar/constants';
import { SKINS as dividerSkins } from '../Divider/Divider.constants';
import { WixDesignSystemContext } from '../WixDesignSystemProvider/context';
/** A divider within the sidebar that supports inner and full mode */
class SidebarDivider extends React.PureComponent {
    render() {
        const { dataHook, fullWidth } = this.props;
        return (React.createElement(WixDesignSystemContext.Consumer, null, () => (React.createElement(SidebarContext.Consumer, null, context => {
            const skin = (context && context.getSkin()) || sidebarSkins.dark;
            return (React.createElement("div", { "data-hook": dataHook, "data-full-width": fullWidth, className: st(classes.root, fullWidth ? classes.fullWidth : '') },
                React.createElement(Divider, { skin: skin === sidebarSkins.light
                        ? dividerSkins.light
                        : dividerSkins.dark, className: classes.divider })));
        }))));
    }
}
SidebarDivider.displayName = 'SidebarDivider';
export default SidebarDivider;
//# sourceMappingURL=SidebarDivider.js.map