woocommerce/plugins/woocommerce-blocks/assets/js/base/components/sidebar-layout/sidebar-layout.js

28 lines
560 B
JavaScript
Raw Normal View History

/**
* External dependencies
*/
import classNames from 'classnames';
import PropTypes from 'prop-types';
import { ContainerWidthContextProvider } from '@woocommerce/base-context';
/**
* Internal dependencies
*/
import './style.scss';
const SidebarLayout = ( { children, className } ) => {
return (
<ContainerWidthContextProvider
className={ classNames( 'wc-block-sidebar-layout', className ) }
>
{ children }
</ContainerWidthContextProvider>
);
};
SidebarLayout.propTypes = {
className: PropTypes.string,
};
export default SidebarLayout;