import Link from 'next/link' import { Button, Card, Dialog, DialogContent, DialogFooter, DialogHeader, DialogSection, DialogSectionSeparator, DialogTitle, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from 'ui' import { TIER_QUERY_LIMITS } from './Logs.constants' import { useSelectedOrganizationQuery } from '@/hooks/misc/useSelectedOrganization' interface Props { show: boolean setShowUpgradePrompt: (value: boolean) => void title?: string description?: string source?: string } /** * @param show - whether to show the modal * @param setShowUpgradePrompt - function to set the show state * @param title - title of the modal * @param description - description of the modal * @param source - source of the upgrade prompt used to track the source of the upgrade prompt in the billing page * @returns */ const UpgradePrompt: React.FC = ({ show, setShowUpgradePrompt, title = 'Log retention', description = 'Logs can be retained up to a duration of 3 months depending on the plan that your project is on.', source = 'logsRetentionUpgradePrompt', }) => { const { data: organization } = useSelectedOrganizationQuery() return ( setShowUpgradePrompt(false)}> {title}

{description}

Plan Retention duration Free {TIER_QUERY_LIMITS.FREE.text} Pro {TIER_QUERY_LIMITS.PRO.text} Team {TIER_QUERY_LIMITS.TEAM.text} Enterprise {TIER_QUERY_LIMITS.ENTERPRISE.text}
) } export default UpgradePrompt