mirror of
https://github.com/langgenius/dify.git
synced 2026-07-26 06:08:38 +08:00
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
10 lines
306 B
TypeScript
10 lines
306 B
TypeScript
import type { ReactNode } from 'react'
|
|
import { AgentsAccessGuard } from './agents-access-guard'
|
|
import { guardAgentV2Route } from './feature-guard'
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
guardAgentV2Route()
|
|
|
|
return <AgentsAccessGuard>{children}</AgentsAccessGuard>
|
|
}
|