import * as React from 'react' import { cva, type VariantProps } from 'class-variance-authority' import { cn } from '@/lib/utils' const markerVariants = cva( 'inline-flex max-w-full items-center gap-2 rounded-full border px-2.5 py-1 text-xs leading-xs transition-colors', { variants: { variant: { neutral: 'border-border bg-fill-secondary text-text-secondary', info: 'border-info-border bg-info-bg text-info', success: 'border-success-border bg-success-bg text-success', warning: 'border-warning-border bg-warning-bg text-warning', error: 'border-error-border bg-error-bg text-error', }, }, defaultVariants: { variant: 'neutral', }, } ) export interface MarkerProps extends React.HTMLAttributes, VariantProps {} const Marker = React.forwardRef( ({ className, variant = 'neutral', ...props }, ref) => (
) ) Marker.displayName = 'Marker' export type MarkerIconProps = React.HTMLAttributes const MarkerIcon = React.forwardRef( ({ className, ...props }, ref) => ( ) ) MarkerIcon.displayName = 'MarkerIcon' export type MarkerContentProps = React.HTMLAttributes const MarkerContent = React.forwardRef( ({ className, ...props }, ref) => ( ) ) MarkerContent.displayName = 'MarkerContent' export { Marker, MarkerIcon, MarkerContent, markerVariants }