dify/web/app/components/datasets/documents/create-from-pipeline/data-source/online-documents/title.tsx
Stephen Zhou a84c2d36a3
style: format with vp fmt (#38803)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-07-12 15:57:46 +00:00

19 lines
417 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="px-[5px] py-1 system-sm-medium text-text-secondary">
{t(($) => $['onlineDocument.pageSelectorTitle'], { ns: 'datasetPipeline', name })}
</div>
)
}
export default React.memo(Title)