mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-21 20:56:42 +00:00
14 lines
327 B
TypeScript
14 lines
327 B
TypeScript
import type { Certificate } from "src/api/backend";
|
|
import { intl } from "src/locale";
|
|
|
|
interface Props {
|
|
certificate?: Certificate;
|
|
}
|
|
export function CertificateFormatter({ certificate }: Props) {
|
|
if (certificate) {
|
|
return intl.formatMessage({ id: "lets-encrypt" });
|
|
}
|
|
|
|
return intl.formatMessage({ id: "http-only" });
|
|
}
|