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

29 lines
500 B
TypeScript

/**
* External dependencies
*/
import { forwardRef } from '@wordpress/element';
import classNames from 'classnames';
/**
* Internal dependencies
*/
import { ForwardRefProps } from './types';
const Main = forwardRef< HTMLInputElement, ForwardRefProps >(
( { children, className = '' }, ref ): JSX.Element => {
return (
<div
ref={ ref }
className={ classNames(
'wc-block-components-main',
className
) }
>
{ children }
</div>
);
}
);
export default Main;