import type { ReactNode } from 'react' import { Alert, AlertDescription, AlertTitle, Card, CardContent, CardHeader, WarningIcon } from 'ui' import type { ResourceError } from '@/data/api-authorization/api-authorization-query' export interface ApiAuthorizationErrorScreenProps { error: ResourceError | undefined } export function ApiAuthorizationErrorScreen({ error, }: ApiAuthorizationErrorScreenProps): ReactNode { return ( Authorize API access Failed to fetch details for API authorization request

Please retry your authorization request from the requesting app

{error &&

Error: {error?.message}

}
) }