2023-05-15 08:51:32 +08:00
|
|
|
import React from 'react'
|
2025-07-25 15:01:28 +08:00
|
|
|
import { getLocaleOnServer, useTranslation as translate } from '@/i18n-config/server'
|
2023-05-15 08:51:32 +08:00
|
|
|
import Form from '@/app/components/datasets/settings/form'
|
|
|
|
|
|
2024-02-23 14:31:06 +08:00
|
|
|
const Settings = async () => {
|
2025-03-21 17:41:03 +08:00
|
|
|
const locale = await getLocaleOnServer()
|
2023-12-11 10:15:49 +08:00
|
|
|
const { t } = await translate(locale, 'dataset-settings')
|
2023-05-15 08:51:32 +08:00
|
|
|
|
|
|
|
|
return (
|
2024-12-26 12:01:51 +08:00
|
|
|
<div className='h-full overflow-y-auto'>
|
2025-09-18 12:49:10 +08:00
|
|
|
<div className='flex flex-col gap-y-0.5 px-6 pb-2 pt-3'>
|
|
|
|
|
<div className='system-xl-semibold text-text-primary'>{t('title')}</div>
|
2024-12-26 12:01:51 +08:00
|
|
|
<div className='system-sm-regular text-text-tertiary'>{t('desc')}</div>
|
2023-05-15 08:51:32 +08:00
|
|
|
</div>
|
2024-02-23 14:31:06 +08:00
|
|
|
<Form />
|
2023-05-15 08:51:32 +08:00
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Settings
|