import React, { FunctionComponent } from "react"; import { TemplateProps } from "../../../../src"; import { DriverLicense } from "../../../application/fixtures/v3/driverLicense"; export const Template: FunctionComponent> = ({ document }) => { return (

Driver License

SN: {document.credentialSubject.id} {document.credentialSubject.class.map((c, i) => (
Class: {c.type}
Effective Date: {c.effectiveDate ? new Date(c.effectiveDate).toDateString() : ""}
))}
); };