feat: publish HoloLake model-native living system source
This commit is contained in:
parent
6ad10edde1
commit
c395dd3a99
2467 changed files with 615073 additions and 0 deletions
18
product-source/hololake-platform/src/TeamFoundationRoot.tsx
Normal file
18
product-source/hololake-platform/src/TeamFoundationRoot.tsx
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import { lazy, Suspense, useState } from 'react'
|
||||
import TeamFoundationApp from './TeamFoundationApp'
|
||||
|
||||
const KnowledgeWorkspace = lazy(() => import('./App'))
|
||||
|
||||
export default function TeamFoundationRoot() {
|
||||
const [surface, setSurface] = useState<'lighthouse' | 'knowledge'>('lighthouse')
|
||||
|
||||
if (surface === 'lighthouse') {
|
||||
return <TeamFoundationApp onOpenKnowledgeSpace={() => setSurface('knowledge')} />
|
||||
}
|
||||
|
||||
return (
|
||||
<Suspense fallback={<div className="team-foundation__loading">正在打开 AI 知识空间…</div>}>
|
||||
<KnowledgeWorkspace distribution="team" onReturnToLighthouse={() => setSurface('lighthouse')} />
|
||||
</Suspense>
|
||||
)
|
||||
}
|
||||
Loading…
Reference in a new issue