UNPKG

@peculiar/fortify-webcomponents

Version:

Web-components for creating CSR or Certificate and viewing certificates list using Fortify

25 lines (24 loc) 1.13 kB
/*! * © Peculiar Ventures https://peculiarventures.com/ - BSD 3-Clause License */ /** * @license * Copyright (c) Peculiar Ventures, LLC. * * This source code is licensed under the BSD 3-Clause license found in the * LICENSE file in the root directory of this source tree. */ import { h } from "@stencil/core"; import { Typography } from "@peculiar/certificates-viewer"; import { getString } from "../../utils/l10n"; import { FortifyStatus } from "../fortify-status"; import { FortifyButton } from "../fortify-button"; export const FortifyChallengeNotApproved = (props) => { const { onCancel, onTryAgain } = props; const title = getString('approve.title', { pattern: '{origin}', replacer: (h(Typography, { variant: "h4", color: "secondary" }, window.location.origin)), }); return (h(FortifyStatus, { title: title, description: getString('approve.description') }, h(FortifyButton, { onClick: onCancel }, getString('actions.cancel')), h(FortifyButton, { variant: "primary", onClick: onTryAgain }, getString('actions.tryAgain')))); }; //# sourceMappingURL=fortify-challenge-not-approved.js.map