import { useTranslation } from 'react-i18next'; import { useCredentialsSettings } from '../../../hooks/useCredentialsSettings'; import ApiKeysSection from './sections/ApiKeysSection'; import GithubCredentialsSection from './sections/GithubCredentialsSection'; import NewApiKeyAlert from './sections/NewApiKeyAlert'; export default function CredentialsSettingsTab() { const { t } = useTranslation('settings'); const { apiKeys, githubCredentials, loading, showNewKeyForm, setShowNewKeyForm, newKeyName, setNewKeyName, showNewGithubForm, setShowNewGithubForm, newGithubName, setNewGithubName, newGithubToken, setNewGithubToken, newGithubDescription, setNewGithubDescription, showToken, copiedKey, newlyCreatedKey, createApiKey, deleteApiKey, toggleApiKey, createGithubCredential, deleteGithubCredential, toggleGithubCredential, copyToClipboard, dismissNewlyCreatedKey, cancelNewApiKeyForm, cancelNewGithubForm, toggleNewGithubTokenVisibility, } = useCredentialsSettings({ confirmDeleteApiKeyText: t('apiKeys.confirmDelete'), confirmDeleteGithubCredentialText: t('apiKeys.github.confirmDelete'), }); if (loading) { return