import { cva, type VariantProps } from "class-variance-authority"; import type { HTMLAttributes, ReactNode } from "react"; import { forwardRef, memo } from "react"; import cn from "@/helpers/cn"; const badgeVariants = cva("rounded-md border text-white text-xs shadow-xs", { defaultVariants: { size: "sm", variant: "primary" }, variants: { size: { sm: "px-2" }, variant: { primary: "border-black bg-black" } } }); interface BadgeProps extends HTMLAttributes, VariantProps { children?: ReactNode; } const Badge = forwardRef( ({ children, className, variant, size, ...rest }, ref) => { return ( {children} ); } ); export default memo(Badge);