import { __ } from '@wordpress/i18n'; import type { JSX } from 'react'; import type { Status } from '../../shared/api/types/status'; import { useSettings } from '../../shared/api/useSettings'; import { useNow } from '../../shared/lib/clock'; import { Icon } from '../../shared/ui/Icon'; import { DatabaseProtection } from './DatabaseProtection'; import { JobsPanel } from './JobsPanel'; import { QuietHours } from './QuietHours'; import { SchedulerBanner } from './SchedulerBanner'; const SECOND_MILLISECONDS = 1000; const SECTION_HEADING_STYLE = { fontSize: 18 }; export function ScheduleView( { status }: { status: Status } ): JSX.Element { const now = useNow( SECOND_MILLISECONDS ); const settingsQuery = useSettings(); const settings = settingsQuery.data; return (

{ __( 'Schedule', 'aiplaz-link-checkup' ) }

{ __( 'WordPress runs these jobs on its own. You do not need to keep this page open.', 'aiplaz-link-checkup' ) }

{ settings !== undefined && ( ) }

{ __( 'Database protection', 'aiplaz-link-checkup' ) }

{ __( 'The plugin is built so it cannot overload or damage your database.', 'aiplaz-link-checkup' ) }

{ __( 'Protected', 'aiplaz-link-checkup' ) }
); }