2024-09-30 15:38:43 +08:00
|
|
|
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)}>
|
2025-03-21 17:41:03 +08:00
|
|
|
<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>
|
2024-09-30 15:38:43 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default CornerLabel
|