import { __ } from '@wordpress/i18n'; import type { JSX } from 'react'; import type { Status } from '../shared/api/types/status'; import type { View } from '../shared/lib/route'; import { Icon } from '../shared/ui/Icon'; import { HeaderTabs } from './HeaderTabs'; import { ScanButton } from './ScanButton'; type HeaderProps = { view: View; status: Status | undefined; }; export function Header( { view, status }: HeaderProps ): JSX.Element { const showsSections = status !== undefined && ! status.first_run; return (
{ __( 'Aiplaz Link Checkup', 'aiplaz-link-checkup' ) }
{ status?.first_run !== true && ( ) }
{ showsSections && ( ) }
); }