dify/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/title.tsx
Stephen Zhou 6d0e36479b
refactor(i18n): use JSON with flattened key and namespace (#30114)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-12-29 14:52:32 +08:00

21 lines
410 B
TypeScript

import * as React from 'react'
import { useTranslation } from 'react-i18next'
type TitleProps = {
name: string
}
const Title = ({
name,
}: TitleProps) => {
const { t } = useTranslation()
return (
<div className="system-sm-medium px-[5px] py-1 text-text-secondary">
{t('onlineDocument.pageSelectorTitle', { ns: 'datasetPipeline', name })}
</div>
)
}
export default React.memo(Title)