import React from "react"; import { TemplateProps, TemplateWithComponent } from "./types"; import { getTemplateUrl } from "./utils"; import NotificationBanner from "./components/NotificationBanner"; const container = { marginRight: "auto", marginLeft: "auto", }; const textColor = `#333`; const paddingBox = `.75rem 1.25rem`; export interface ConnectionFailureProps { source?: string; } export const ConnectionFailureTemplate: React.FunctionComponent = (props) => { return (

This document might be having loading issues

Try refreshing the page or check your internet connection. If the issue continues, please contact the issuer with the information below:

Template URL: "{props.source}"

); }; export const DefaultTemplate: React.FunctionComponent> = (props) => { return (
          {JSON.stringify(props.document, null, 2)}
        
); }; export const defaultTemplate: TemplateWithComponent = { id: "default-template", label: "Default", template: DefaultTemplate, };