mirror of
https://github.com/langgenius/dify.git
synced 2025-08-03 06:48:09 +00:00
21 lines
398 B
TypeScript
21 lines
398 B
TypeScript
![]() |
import 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('datasetPipeline.onlineDocument.pageSelectorTitle', { name })}
|
||
|
</div>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default React.memo(Title)
|