import * as React from "react"; import { Box, Button, Text } from "rimble-ui"; import { Check, Warning } from "@rimble/icons"; import { VC } from "vc-schema-tools"; import { colors } from "../../../../themes"; import { H3 } from "../../../layouts/LayoutComponents"; import { CredentialShare } from "../CredentialShare"; export interface IssueVcSuccessProps { vc: VC; messagingError?: string; onComplete(): void; } export const IssueVcSuccess: React.FunctionComponent = (props) => { const { onComplete, vc, messagingError } = props; return ( {messagingError ? ( <> ) : ( <> )}

{messagingError ? "Failed to Send Credential" : "Credential Issued"}

{messagingError && ( <>

Your credential has been created, but we were unable to send it to {vc.credentialSubject.id}.{" "} {messagingError}.

Please try a different sending via method.

)}
Skip for now
); };