import { labelVariants } from './variants'

import type { LabelProps } from './types'

export function Label({
  children,
  className,
  selected,
  required,
  size,
}: LabelProps) {
  const classNames = labelVariants({
    className,
    size,
    required,
    selected,
  })

  return <span className={classNames}>{children}</span>
}
