-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathApp.tsx
More file actions
32 lines (26 loc) · 1.1 KB
/
App.tsx
File metadata and controls
32 lines (26 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import React from 'react';
import MainApp from './MainApp';
import { SuttaStudioBenchmarkView } from './components/bench/SuttaStudioBenchmarkView';
import { SuttaStudioApp } from './components/sutta-studio/SuttaStudioApp';
import { SuttaStudioView } from './components/sutta-studio/SuttaStudioView';
import { SuttaStudioPipelineLoader } from './components/sutta-studio/SuttaStudioPipelineLoader';
import { DEMO_PACKET_MN10 } from './components/sutta-studio/demoPacket';
const App: React.FC = () => {
const pathname = typeof window !== 'undefined' ? window.location.pathname : '';
if (pathname === '/bench/sutta-studio') {
return <SuttaStudioBenchmarkView />;
}
// Direct demo route - renders curated mock data without any API calls
if (pathname === '/sutta/demo') {
return <SuttaStudioView packet={DEMO_PACKET_MN10} />;
}
// Pipeline output viewer - loads assembled packet from benchmark runs
if (pathname === '/sutta/pipeline') {
return <SuttaStudioPipelineLoader />;
}
if (pathname.startsWith('/sutta')) {
return <SuttaStudioApp />;
}
return <MainApp />;
};
export default App;