0 ? previous : null}
next={activeIdx < readyErrors.length - 1 ? next : null}
close={isServerError ? undefined : minimize}
>
{activeIdx + 1} of{' '}
{readyErrors.length} unhandled error
{readyErrors.length < 2 ? '' : 's'}
{isServerError ? 'Server Error' : 'Unhandled Runtime Error'}
{activeError.error.name}:{' '}
{isServerError ? (
This error happened while generating the page. Any console
logs will be displayed in the terminal window.
) : undefined}