mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-06 00:16:49 +00:00
19 lines
479 B
TypeScript
19 lines
479 B
TypeScript
import type { Certificate } from "src/api/backend";
|
|
import { T } from "src/locale";
|
|
|
|
interface Props {
|
|
certificate?: Certificate;
|
|
}
|
|
export function CertificateFormatter({ certificate }: Props) {
|
|
let translation = "http-only";
|
|
if (certificate) {
|
|
translation = certificate.provider;
|
|
if (translation === "letsencrypt") {
|
|
translation = "lets-encrypt";
|
|
} else if (translation === "other") {
|
|
translation = "certificates.custom";
|
|
}
|
|
}
|
|
return <T id={translation} />;
|
|
}
|