import { Link } from "@tanstack/react-router"; import { EmptyState } from "@app/components/v2"; import { useSubscription } from "@app/context"; import { EventType } from "@app/hooks/api/auditLogs/enums"; import { TIntegrationWithEnv } from "@app/hooks/api/integrations/types"; import { LogsSection } from "@app/pages/organization/AuditLogsPage/components/LogsSection"; // Add more events if needed const INTEGRATION_EVENTS = [EventType.INTEGRATION_SYNCED]; type Props = { integration: TIntegrationWithEnv; }; export const IntegrationAuditLogsSection = ({ integration }: Props) => { const { subscription } = useSubscription(); const auditLogsRetentionDays = subscription?.auditLogsRetentionDays ?? 30; // eslint-disable-next-line no-nested-ternary return subscription?.auditLogs ? (
Integration Logs
Displaying audit logs from the last {Math.min(auditLogsRetentionDays, 60)} days
Integration Logs
Please{" "} {subscription && subscription.slug !== null ? ( upgrade your subscription ) : ( upgrade your subscription )}{" "} to view integration logs