diff --git a/client/src/components/Audio/Voices.tsx b/client/src/components/Audio/Voices.tsx index f41d57ac26..5d1d843b58 100644 --- a/client/src/components/Audio/Voices.tsx +++ b/client/src/components/Audio/Voices.tsx @@ -6,7 +6,7 @@ import { useLocalize, useTTSBrowser, useTTSExternal } from '~/hooks'; import { logger } from '~/utils'; import store from '~/store'; -export function BrowserVoiceDropdown() { +export function BrowserVoiceDropdown({ disabled = false }: { disabled?: boolean }) { const localize = useLocalize(); const { voices = [] } = useTTSBrowser(); const [voice, setVoice] = useRecoilState(store.voice); @@ -33,12 +33,13 @@ export function BrowserVoiceDropdown() { testId="BrowserVoiceDropdown" className="z-50" aria-labelledby={labelId} + disabled={disabled} /> ); } -export function ExternalVoiceDropdown() { +export function ExternalVoiceDropdown({ disabled = false }: { disabled?: boolean }) { const localize = useLocalize(); const { voices = [] } = useTTSExternal(); const [voice, setVoice] = useRecoilState(store.voice); @@ -65,6 +66,7 @@ export function ExternalVoiceDropdown() { testId="ExternalVoiceDropdown" className="z-50" aria-labelledby={labelId} + disabled={disabled} /> ); diff --git a/client/src/components/Nav/AccountSettings.tsx b/client/src/components/Nav/AccountSettings.tsx index 5ced6db89a..efd0657542 100644 --- a/client/src/components/Nav/AccountSettings.tsx +++ b/client/src/components/Nav/AccountSettings.tsx @@ -1,7 +1,8 @@ import { useState, memo, useRef } from 'react'; import * as Menu from '@ariakit/react/menu'; -import { FileText, LogOut } from 'lucide-react'; +import { FileText, Archive, LogOut } from 'lucide-react'; import { LinkIcon, GearIcon, DropdownMenuSeparator, Avatar } from '@librechat/client'; +import { ArchivedChatsModal } from '~/components/Nav/SettingsTabs/General/ArchivedChatsModal'; import { MyFilesModal } from '~/components/Chat/Input/Files/MyFilesModal'; import { useGetStartupConfig, useGetUserBalance } from '~/data-provider'; import { useAuthContext } from '~/hooks/AuthContext'; @@ -17,6 +18,7 @@ function AccountSettings({ collapsed = false }: { collapsed?: boolean }) { }); const [showSettings, setShowSettings] = useState(false); const [showFiles, setShowFiles] = useState(false); + const [showArchived, setShowArchived] = useState(false); const accountSettingsButtonRef = useRef(null); return ( @@ -72,6 +74,10 @@ function AccountSettings({ collapsed = false }: { collapsed?: boolean }) {