2020-03-12 09:41:35 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2021-10-20 16:18:13 +00:00
|
|
|
import { forwardRef } from 'react';
|
2020-03-12 09:41:35 +00:00
|
|
|
import classNames from 'classnames';
|
|
|
|
|
2021-10-20 16:18:13 +00:00
|
|
|
const Main = forwardRef( ( { children, className = '' }, ref ) => {
|
2020-03-12 09:41:35 +00:00
|
|
|
return (
|
2021-10-20 16:18:13 +00:00
|
|
|
<div
|
|
|
|
ref={ ref }
|
|
|
|
className={ classNames( 'wc-block-components-main', className ) }
|
|
|
|
>
|
2020-03-12 09:41:35 +00:00
|
|
|
{ children }
|
|
|
|
</div>
|
|
|
|
);
|
2021-10-20 16:18:13 +00:00
|
|
|
} );
|
2020-03-13 15:49:33 +00:00
|
|
|
|
2020-03-12 09:41:35 +00:00
|
|
|
export default Main;
|