import { Alert, Divider, Tabs, Text } from '@mantine/core'; import { UseFormReturnType } from '@mantine/form'; import { IconAlertTriangle } from '@tabler/icons-react'; import { Trans, useTranslation } from 'next-i18next'; import { AppType } from '~/types/app'; import { IntegrationSelector } from './Components/InputElements/IntegrationSelector'; import { IntegrationOptionsRenderer } from './Components/IntegrationOptionsRenderer/IntegrationOptionsRenderer'; interface IntegrationTabProps { form: UseFormReturnType AppType>; } export const IntegrationTab = ({ form }: IntegrationTabProps) => { const { t } = useTranslation('layout/modals/add-app'); const hasIntegrationSelected = form.values.integration?.type; return ( {hasIntegrationSelected && ( <> {t('integration.secrets.description')} } color="yellow"> )} ); };