mirror of
https://github.com/langgenius/dify.git
synced 2026-08-03 11:46:37 +08:00
20 lines
455 B
TypeScript
20 lines
455 B
TypeScript
import type { ReactNode } from 'react'
|
|
import InstanceDetail from '@/app/components/deployments/instance-detail'
|
|
|
|
type LayoutProps = {
|
|
children: ReactNode
|
|
params: Promise<{ instanceId: string }>
|
|
}
|
|
|
|
const InstanceDetailLayout = async ({ children, params }: LayoutProps) => {
|
|
const { instanceId } = await params
|
|
|
|
return (
|
|
<InstanceDetail instanceId={instanceId}>
|
|
{children}
|
|
</InstanceDetail>
|
|
)
|
|
}
|
|
|
|
export default InstanceDetailLayout
|