import { Stack, Button, Text } from "@mantine/core"; import { useTranslation } from "react-i18next"; import { ManageSignaturesParameters } from "../../../hooks/tools/manageSignatures/useManageSignaturesParameters"; interface CertificateFormatSettingsProps { parameters: ManageSignaturesParameters; onParameterChange: (key: keyof ManageSignaturesParameters, value: any) => void; disabled?: boolean; } const CertificateFormatSettings = ({ parameters, onParameterChange, disabled = false }: CertificateFormatSettingsProps) => { const { t } = useTranslation(); return (
{/* First row - PKCS#12 and PEM */}
{/* Second row - JKS spanning full width */}
{parameters.certType === 'PKCS12' && "Upload a single .p12/.pfx file containing both certificate and private key"} {parameters.certType === 'PEM' && "Upload separate certificate (.crt/.pem) and private key (.key/.pem) files"} {parameters.certType === 'JKS' && "Upload a Java KeyStore (.jks) file"} {!parameters.certType && "Choose the format of your certificate files"}
); }; export default CertificateFormatSettings;