index.tsx 566 B

12345678910111213141516171819202122232425
  1. 'use client'
  2. import type { FC } from 'react'
  3. import React from 'react'
  4. export type IGroupNameProps = {
  5. name: string
  6. }
  7. const GroupName: FC<IGroupNameProps> = ({
  8. name,
  9. }) => {
  10. return (
  11. <div className='flex items-center mb-1'>
  12. <div className='mr-3 leading-[18px] text-xs font-semibold text-text-tertiary uppercase'>{name}</div>
  13. <div className='grow h-[1px]'
  14. style={{
  15. background: 'linear-gradient(270deg, rgba(243, 244, 246, 0) 0%, #F3F4F6 100%)',
  16. }}
  17. ></div>
  18. </div>
  19. )
  20. }
  21. export default React.memo(GroupName)