woocommerce/plugins/woocommerce-blocks/packages/checkout/components/store-notice/index.tsx

30 lines
511 B
TypeScript

/**
* External dependencies
*/
import classnames from 'classnames';
import NoticeBanner, {
NoticeBannerProps,
} from '@woocommerce/base-components/notice-banner';
/**
* Wrapper for NoticeBanner component.
*/
const StoreNotice = ( {
className,
children,
status,
...props
}: NoticeBannerProps ) => {
return (
<NoticeBanner
className={ classnames( 'wc-block-store-notice', className ) }
status={ status }
{ ...props }
>
{ children }
</NoticeBanner>
);
};
export default StoreNotice;