dify/web/app/(commonLayout)/layout.tsx
2023-06-29 15:30:12 +08:00

27 lines
610 B
TypeScript

import React from 'react'
import type { ReactNode } from 'react'
import SwrInitor from '@/app/components/swr-initor'
import { AppContextProvider } from '@/context/app-context'
import GA, { GaType } from '@/app/components/base/ga'
import Header from '@/app/components/header'
const Layout = ({ children }: { children: ReactNode }) => {
return (
<>
<GA gaType={GaType.admin} />
<SwrInitor>
<AppContextProvider>
<Header />
{children}
</AppContextProvider>
</SwrInitor>
</>
)
}
export const metadata = {
title: 'Dify',
}
export default Layout