index.tsx 792 B

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