Devendra174's picture
Upload folder using huggingface_hub
1e92f2d verified
import config from '@automattic/calypso-config';
import clsx from 'clsx';
import { useTranslate } from 'i18n-calypso';
import './style.scss';
const WooBlazeHeader = ( { className = '', children } ) => {
const translate = useTranslate();
const isBlazePlugin = config.isEnabled( 'is_running_in_blaze_plugin' );
return (
<header className={ clsx( 'blaze-plugin-header', className ) }>
<h2>{ isBlazePlugin ? translate( 'Blaze Ads' ) : translate( 'Advertising' ) }</h2>
{ children }
</header>
);
};
export default WooBlazeHeader;