mirror of
https://github.com/langgenius/dify.git
synced 2025-08-01 05:47:27 +00:00

Co-authored-by: Joel <iamjoel007@gmail.com> Co-authored-by: crazywoola <427733928@qq.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Novice <novice12185727@gmail.com>
22 lines
471 B
TypeScript
22 lines
471 B
TypeScript
import React from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
type Props = {
|
|
title?: string
|
|
}
|
|
const Header = ({
|
|
title,
|
|
}: Props) => {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className='flex flex-col border-b-[0.5px] border-divider-regular'>
|
|
<div className='system-md-semibold flex items-center px-2 py-1.5 text-text-primary'>
|
|
{title || t('time.title.pickTime')}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default React.memo(Header)
|