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

29 lines
496 B
TypeScript
Raw Normal View History

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