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

33 lines
595 B
TypeScript
Raw Normal View History

/**
* External dependencies
*/
import clsx from 'clsx';
import { ContainerWidthContextProvider } from '@woocommerce/base-context';
/**
* Internal dependencies
*/
import './style.scss';
interface SidebarLayoutProps {
children: JSX.Element | JSX.Element[];
className: string;
}
const SidebarLayout = ( {
children,
className,
}: SidebarLayoutProps ): JSX.Element => {
return (
<ContainerWidthContextProvider
className={ clsx(
'wc-block-components-sidebar-layout',
className
) }
>
{ children }
</ContainerWidthContextProvider>
);
};
export default SidebarLayout;