File size: 543 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
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;
|