'use client'; import React, { Suspense } from 'react'; import { useSearchParams } from 'next/navigation'; import { ProvidersModelsView } from '@/components/providers-models'; import { SettingsPanel } from '@/components/settings'; interface SettingsViewProps { tab?: 'model' | 'application'; } function SettingsViewInner({ tab }: SettingsViewProps) { const searchParams = useSearchParams(); // URL param takes precedence, then prop, then default to 'model' const settingsTab = searchParams.get('settings') as 'model' | 'application' | null; const activeTab = settingsTab || tab || 'model'; return (
{activeTab === 'application' ? : }
); } export function SettingsView({ tab }: SettingsViewProps) { return (

Loading...

}>
); }