import { TroubleshootingAccordion } from '../TroubleshootingAccordion' import { FixWithAITroubleshootingSection, RestartDatabaseTroubleshootingSection, TroubleshootingGuideSection, } from '../TroubleshootingSections' import { SIDEBAR_KEYS } from '@/components/layouts/ProjectLayout/LayoutSidebar/LayoutSidebarProvider' import { useAiAssistantStateSnapshot } from '@/state/ai-assistant-state' import { useSidebarManagerSnapshot } from '@/state/sidebar-manager-state' const ERROR_TYPE = 'connection-timeout' const BUILD_PROMPT = () => `The user is encountering connection timeout errors. The error message is: "CONNECTION TERMINATED DUE TO CONNECTION TIMEOUT". What are the most likely causes of this issue and how can the user resolve it?` export function ConnectionTimeoutTroubleshooting() { const { openSidebar } = useSidebarManagerSnapshot() const aiSnap = useAiAssistantStateSnapshot() return ( { openSidebar(SIDEBAR_KEYS.AI_ASSISTANT) aiSnap.newChat({ initialMessage: prompt }) }} buildPrompt={BUILD_PROMPT} /> ) }