2023-01-05 07:56:05 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
2023-03-02 14:26:00 +00:00
|
|
|
import { forwardRef } from '@wordpress/element';
|
2024-05-31 03:49:36 +00:00
|
|
|
import clsx from 'clsx';
|
2023-01-05 07:56:05 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import { ForwardRefProps } from './types';
|
|
|
|
|
|
|
|
const Main = forwardRef< HTMLInputElement, ForwardRefProps >(
|
|
|
|
( { children, className = '' }, ref ): JSX.Element => {
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
ref={ ref }
|
2024-05-31 03:49:36 +00:00
|
|
|
className={ clsx( 'wc-block-components-main', className ) }
|
2023-01-05 07:56:05 +00:00
|
|
|
>
|
|
|
|
{ children }
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
|
|
|
export default Main;
|