header.tsx 487 B

12345678910111213141516171819202122232425
  1. import type { FC } from 'react'
  2. import { memo } from 'react'
  3. type HeaderProps = {
  4. title: string
  5. isMobile: boolean
  6. }
  7. const Header: FC<HeaderProps> = ({
  8. title,
  9. isMobile,
  10. }) => {
  11. return (
  12. <div
  13. className={`
  14. sticky top-0 flex items-center px-8 h-16 bg-white/80 text-base font-medium
  15. text-gray-900 border-b-[0.5px] border-b-gray-100 backdrop-blur-md z-10
  16. ${isMobile && '!h-12'}
  17. `}
  18. >
  19. {title}
  20. </div>
  21. )
  22. }
  23. export default memo(Header)