You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

header.tsx 471B

123456789101112131415161718192021
  1. import React from 'react'
  2. import { useTranslation } from 'react-i18next'
  3. type Props = {
  4. title?: string
  5. }
  6. const Header = ({
  7. title,
  8. }: Props) => {
  9. const { t } = useTranslation()
  10. return (
  11. <div className='flex flex-col border-b-[0.5px] border-divider-regular'>
  12. <div className='system-md-semibold flex items-center px-2 py-1.5 text-text-primary'>
  13. {title || t('time.title.pickTime')}
  14. </div>
  15. </div>
  16. )
  17. }
  18. export default React.memo(Header)