wwf
2025-05-20 938c3e5a587ce950a94964ea509b9e7f8834dfae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Corner } from '../icons/src/vender/solid/shapes'
import cn from '@/utils/classnames'
 
type CornerLabelProps = {
  label: string
  className?: string
  labelClassName?: string
}
 
const CornerLabel: React.FC<CornerLabelProps> = ({ label, className, labelClassName }) => {
  return (
    <div className={cn('group/corner-label inline-flex items-start', className)}>
      <Corner className='h-5 w-[13px] text-background-section group-hover/corner-label:text-background-section-burn' />
      <div className={cn('flex items-center gap-0.5 bg-background-section py-1 pr-2 group-hover/corner-label:bg-background-section-burn', labelClassName)}>
        <div className='system-2xs-medium-uppercase text-text-tertiary'>{label}</div>
      </div>
    </div>
  )
}
 
export default CornerLabel