2021-09-21 10:18:27 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2024-05-31 03:49:36 +00:00
|
|
|
import clsx from 'clsx';
|
2021-09-21 10:18:27 +00:00
|
|
|
import { Sidebar } from '@woocommerce/base-components/sidebar-layout';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import './style.scss';
|
|
|
|
|
|
|
|
const FrontendBlock = ( {
|
|
|
|
children,
|
2022-04-01 13:45:18 +00:00
|
|
|
className = '',
|
2021-09-21 10:18:27 +00:00
|
|
|
}: {
|
2021-10-25 14:46:34 +00:00
|
|
|
children: JSX.Element | JSX.Element[];
|
2022-04-01 13:45:18 +00:00
|
|
|
className?: string;
|
2021-09-21 10:18:27 +00:00
|
|
|
} ): JSX.Element => {
|
2021-10-25 15:31:22 +00:00
|
|
|
return (
|
2024-05-31 03:49:36 +00:00
|
|
|
<Sidebar className={ clsx( 'wc-block-cart__sidebar', className ) }>
|
2021-10-25 15:31:22 +00:00
|
|
|
{ children }
|
|
|
|
</Sidebar>
|
|
|
|
);
|
2021-09-21 10:18:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default FrontendBlock;
|