mirror of
https://github.com/langgenius/dify.git
synced 2026-04-05 05:36:19 +08:00
Co-authored-by: StyleZhang <jasonapring2015@outlook.com> Co-authored-by: Joel <iamjoel007@gmail.com>
33 lines
968 B
TypeScript
33 lines
968 B
TypeScript
import React from 'react'
|
|
import { EditKeyPopover } from './welcome-banner'
|
|
import ChartView from './chartView'
|
|
import CardView from './cardView'
|
|
import { getLocaleOnServer } from '@/i18n/server'
|
|
import { useTranslation } from '@/i18n/i18next-serverside-config'
|
|
import ApikeyInfoPanel from '@/app/components/app/overview/apikey-info-panel'
|
|
|
|
export type IDevelopProps = {
|
|
params: { appId: string }
|
|
}
|
|
|
|
const Overview = async ({
|
|
params: { appId },
|
|
}: IDevelopProps) => {
|
|
const locale = getLocaleOnServer()
|
|
const { t } = await useTranslation(locale, 'app-overview')
|
|
return (
|
|
<div className="h-full px-16 py-6 overflow-scroll">
|
|
{/* <WelcomeBanner /> */}
|
|
<ApikeyInfoPanel />
|
|
<div className='flex flex-row items-center justify-between mb-4 text-xl text-gray-900'>
|
|
{t('overview.title')}
|
|
<EditKeyPopover />
|
|
</div>
|
|
<CardView appId={appId} />
|
|
<ChartView appId={appId} />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Overview
|