import dayjs from 'dayjs'
import type { ReactNode } from 'react'
import { Admonition } from 'ui-patterns/Admonition'
import {
AuthorizeConnectLogo,
AuthorizeRequesterDetails,
} from '@/components/interfaces/Organization/OAuthApps/AuthorizeRequesterDetails'
import { InterstitialLayout } from '@/components/layouts/InterstitialLayout'
import type { ApiAuthorizationResponse } from '@/data/api-authorization/api-authorization-query'
import type { Organization } from '@/types'
export interface ApiAuthorizationApprovedScreenProps {
requester: ApiAuthorizationResponse
organization: Organization | undefined
}
export function ApiAuthorizationApprovedScreen({
requester,
organization,
}: ApiAuthorizationApprovedScreenProps): ReactNode {
const organizationName = organization?.name ?? 'Unknown'
return (
Approved on {dayjs(requester.approved_at).format('DD MMM YYYY HH:mm:ss (ZZ)')}.