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

28 lines
582 B
TypeScript

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