Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | 2x 2x 2x | import { MouseEventHandler } from 'react'
import { useTranslation } from 'next-i18next'
import ActionButton from '../ActionButton'
import AlertBlock from '../AlertBlock'
export interface CheckStatusNotAcceptableProps {
checkAnotherHandler: MouseEventHandler<HTMLButtonElement>
}
export const CheckStatusNotAcceptable = ({
checkAnotherHandler,
}: CheckStatusNotAcceptableProps) => {
const { t } = useTranslation(['status', 'common'])
return (
<div id="response-result">
<AlertBlock page="status-invalid" />
<h1
id="main-header"
data-testid="not-acceptable"
className="h1"
tabIndex={-1}
>
{t('not-acceptable.header')}
</h1>
<div className="max-w-prose">
<p>{t('not-acceptable.unable-to-process')}</p>
<h2>{t('not-acceptable.next-steps.header')}</h2>
<p>{t('not-acceptable.next-steps.sent-letter')}</p>
<p>{t('not-acceptable.next-steps.please-wait')}</p>
<div className="mt-8">
<ActionButton
onClick={checkAnotherHandler}
text={t('status:check-another')}
style="primary"
/>
</div>
</div>
</div>
)
}
export default CheckStatusNotAcceptable
|