dify/web/app/(commonLayout)/datasets/(datasetDetailLayout)/[datasetId]/settings/page.tsx

30 lines
773 B
TypeScript
Raw Normal View History

2023-05-15 08:51:32 +08:00
import React from 'react'
import { getLocaleOnServer } from '@/i18n/server'
import { useTranslation } from '@/i18n/i18next-serverside-config'
import Form from '@/app/components/datasets/settings/form'
2023-05-24 14:20:21 +08:00
type Props = {
params: { datasetId: string }
}
const Settings = async ({
params: { datasetId },
}: Props) => {
2023-05-15 08:51:32 +08:00
const locale = getLocaleOnServer()
const { t } = await useTranslation(locale, 'dataset-settings')
return (
<div className='bg-white h-full'>
<div className='px-6 py-3'>
<div className='mb-1 text-lg font-semibold text-gray-900'>{t('title')}</div>
<div className='text-sm text-gray-500'>{t('desc')}</div>
</div>
<div>
2023-05-24 14:20:21 +08:00
<Form datasetId={datasetId} />
2023-05-15 08:51:32 +08:00
</div>
</div>
)
}
export default Settings