mirror of
https://github.com/langgenius/dify.git
synced 2026-05-10 22:28:55 +08:00
22 lines
360 B
TypeScript
22 lines
360 B
TypeScript
'use client'
|
|
|
|
import { lazy, Suspense } from 'react'
|
|
import { IS_DEV } from '@/config'
|
|
|
|
const Agentation = lazy(() =>
|
|
import('./agentation').then(module => ({
|
|
default: module.Agentation,
|
|
})),
|
|
)
|
|
|
|
export const AgentationLoader = () => {
|
|
if (!IS_DEV)
|
|
return null
|
|
|
|
return (
|
|
<Suspense fallback={null}>
|
|
<Agentation />
|
|
</Suspense>
|
|
)
|
|
}
|