woocommerce/plugins/woocommerce-blocks/assets/js/blocks/checkout/inner-blocks/checkout-totals-block/frontend.tsx

29 lines
483 B
TypeScript

/**
* External dependencies
*/
import classnames from 'classnames';
import { Sidebar } from '@woocommerce/base-components/sidebar-layout';
/**
* Internal dependencies
*/
import './style.scss';
const FrontendBlock = ( {
children,
className,
}: {
children: JSX.Element;
className?: string;
} ): JSX.Element => {
return (
<Sidebar
className={ classnames( 'wc-block-checkout__sidebar', className ) }
>
{ children }
</Sidebar>
);
};
export default FrontendBlock;