import { captionVariants } from "./variants"

import type { CaptionProps } from "./caption"

export default function Caption({
  children,
  className = "",
  color,
  textTransform,
}: CaptionProps) {
  const classNames = captionVariants({
    className,
    color,
    textTransform,
  })
  return <p className={classNames}>{children}</p>
}
