2025-02-19 10:56:18 +08:00
|
|
|
import React from 'react'
|
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
|
|
2025-07-23 15:33:39 +08:00
|
|
|
type Props = {
|
|
|
|
title?: string
|
|
|
|
}
|
|
|
|
const Header = ({
|
|
|
|
title,
|
|
|
|
}: Props) => {
|
2025-02-19 10:56:18 +08:00
|
|
|
const { t } = useTranslation()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<div className='flex flex-col border-b-[0.5px] border-divider-regular'>
|
2025-03-21 17:41:03 +08:00
|
|
|
<div className='system-md-semibold flex items-center px-2 py-1.5 text-text-primary'>
|
2025-07-23 15:33:39 +08:00
|
|
|
{title || t('time.title.pickTime')}
|
2025-02-19 10:56:18 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default React.memo(Header)
|