mirror of
https://github.com/langgenius/dify.git
synced 2026-02-13 06:24:44 +08:00
Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
21 lines
410 B
TypeScript
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)
|