mirror of
https://github.com/langgenius/dify.git
synced 2026-07-31 09:19:29 +08:00
16 lines
430 B
TypeScript
16 lines
430 B
TypeScript
import type { ReactNode } from 'react'
|
|
import PluginDependency from '@/app/components/workflow/plugin-dependency'
|
|
import { AgentsAccessGuard } from './agents-access-guard'
|
|
import { guardAgentV2Route } from './feature-guard'
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
guardAgentV2Route()
|
|
|
|
return (
|
|
<AgentsAccessGuard>
|
|
<PluginDependency />
|
|
{children}
|
|
</AgentsAccessGuard>
|
|
)
|
|
}
|