export function WizardBanner( { wizard, i18n } ) {
	if ( ! wizard?.url ) {
		return null;
	}
	if ( wizard.completed ) {
		return (
			<p className="newsroom-settings__wizard-link">
				<a className="button button-secondary" href={ wizard.url }>{ i18n?.wizardRerun }</a>
			</p>
		);
	}
	return (
		<div className="newsroom-settings__wizard">
			<div className="newsroom-settings__wizard-copy">
				<strong>{ i18n?.gettingStarted }</strong>
				<p>{ i18n?.runWizard }</p>
			</div>
			<a className="button button-primary" href={ wizard.url }>{ i18n?.wizardCta }</a>
		</div>
	);
}
