mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-11 04:29:10 +00:00
20 lines
686 B
TypeScript
20 lines
686 B
TypeScript
import { Modal, ModalContent } from "@app/components/v2";
|
|
import { KmipClientCertificate } from "@app/hooks/api/kmip/types";
|
|
import { CertificateContent } from "@app/pages/cert-manager/CertificatesPage/components/CertificatesTab/components/CertificateContent";
|
|
|
|
type Props = {
|
|
isOpen: boolean;
|
|
onOpenChange: (isOpen: boolean) => void;
|
|
certificate: KmipClientCertificate;
|
|
};
|
|
|
|
export const KmipClientCertificateModal = ({ isOpen, onOpenChange, certificate }: Props) => {
|
|
return (
|
|
<Modal isOpen={isOpen} onOpenChange={onOpenChange}>
|
|
<ModalContent title="KMIP client certificate">
|
|
<CertificateContent {...certificate} />
|
|
</ModalContent>
|
|
</Modal>
|
|
);
|
|
};
|