import { __ } from '@wordpress/i18n'; import type { JSX } from 'react'; import type { Status } from '../../shared/api/types/status'; import { useRoute } from '../../shared/lib/router'; import { FilterChips } from './FilterChips'; import { FixAllButton } from './FixAllButton'; import { linksFilterOf } from './linksFilter'; import { linksLede } from './linksLede'; import { LinksList } from './LinksList'; import { linksQueryOf } from './linksQuery'; import { LinksSearch } from './LinksSearch'; export function LinksView( { status }: { status: Status } ): JSX.Element { const { params } = useRoute(); const activeFilter = linksFilterOf( params ); const search = params.s ?? ''; const { counts } = status; const problemTotal = counts.broken + counts.blocked + counts.moved; return (

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

{ linksLede( counts, problemTotal ) }

); }