import React, { useState } from 'react' import { InferenceProvider } from '@/contexts/InferenceContext' import { MCPProvider } from '@/contexts/MCPContext' import { InferenceTest } from '@/components/InferenceTest' import { MCPTest } from '@/components/MCPTest' import { ConversationApp } from '@/components/ConversationApp' import { OAuthCallback } from '@/components/OAuthCallback' function App() { // Simple routing based on pathname const pathname = window.location.pathname; const isInferenceOAuthCallback = pathname === '/oauth/inference/callback'; const isMcpOAuthCallback = pathname === '/oauth/mcp/callback'; if (isInferenceOAuthCallback) { return ; } if (isMcpOAuthCallback) { return ; } const [activeTab, setActiveTab] = useState<'conversations' | 'inference' | 'mcp'>('conversations'); return (
{/* Tab Navigation */}
{/* Tab Content */} {activeTab === 'conversations' && } {activeTab === 'inference' && } {activeTab === 'mcp' && }
) } export default App