import { faFingerprint } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { Link } from "@tanstack/react-router"; import { useProject, useSubscription } from "@app/context"; import { EventType } from "@app/hooks/api/auditLogs/enums"; import { TPkiSync } from "@app/hooks/api/pkiSyncs"; import { LogsSection } from "@app/pages/organization/AuditLogsPage/components/LogsSection"; const PKI_SYNC_EVENTS = [ EventType.PKI_SYNC_SYNC_CERTIFICATES, EventType.PKI_SYNC_IMPORT_CERTIFICATES, EventType.PKI_SYNC_REMOVE_CERTIFICATES ]; type Props = { pkiSync: TPkiSync; }; export const PkiSyncAuditLogsSection = ({ pkiSync }: Props) => { const { subscription } = useSubscription(); const { currentProject } = useProject(); const auditLogsRetentionDays = subscription?.auditLogsRetentionDays ?? 30; return (
Displaying audit logs from the last {Math.min(auditLogsRetentionDays, 60)} days
)}Please{" "} {subscription && subscription.slug !== null ? ( upgrade your subscription ) : ( upgrade your subscription )}{" "} to view sync logs.