import Link from "next/link"; 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/views/Org/AuditLogsPage/components"; // Add more events if needed const INTEGRATION_EVENTS = [EventType.INTEGRATION_SYNCED]; type Props = { integration: TIntegrationWithEnv; orgId: string; }; export const IntegrationAuditLogsSection = ({ integration, orgId }: Props) => { const { subscription, isLoading } = useSubscription(); const auditLogsRetentionDays = subscription?.auditLogsRetentionDays ?? 30; // eslint-disable-next-line no-nested-ternary return subscription?.auditLogs ? (

Integration Logs

Displaying audit logs from the last {auditLogsRetentionDays} days

) : !isLoading ? (

Integration Logs

Please{" "} upgrade your subscription {" "} to view integration logs

} /> ) : null; };