Files
nginx-proxy-manager/frontend/src/components/Table/Formatter/CertificateFormatter.tsx
T
2025-10-02 08:10:42 +10:00

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" });
}