import { Icon } from "react-feather"; import classNames from "@calcom/lib/classNames"; export const badgeClassNameByVariant = { default: "bg-orange-100 text-orange-800", warning: "bg-orange-100 text-orange-800", orange: "bg-orange-100 text-orange-800", success: "bg-green-100 text-green-800", green: "bg-green-100 text-green-800", gray: "bg-gray-200 text-gray-800", blue: "bg-blue-100 text-blue-800", red: "bg-red-100 text-red-800", error: "bg-red-100 text-red-800", }; const classNameBySize = { default: "h-5", lg: "h-6", }; export type BadgeProps = { variant: keyof typeof badgeClassNameByVariant; size?: keyof typeof classNameBySize; StartIcon?: Icon; bold?: boolean; } & JSX.IntrinsicElements["div"]; export const Badge = function Badge(props: BadgeProps) { const { variant, className, size = "default", StartIcon, bold, ...passThroughProps } = props; return (