import { HTMLAttributes, forwardRef, memo } from "react";
import { cn } from "@/utils/cn";
export interface BadgeProps extends HTMLAttributes {
variant?: "success" | "warning" | "error" | "info" | "ai" | "default";
}
const Badge = memo(forwardRef(
({ className, variant = "default", children, ...props }, ref) => {
const variantStyles = {
success: "bg-green-500/10 text-green-500 ring-green-500/20",
warning: "bg-brand/10 text-brand ring-brand/20",
error: "bg-red-500/10 text-red-500 ring-red-500/20",
info: "bg-blue-500/10 text-blue-500 ring-blue-500/20",
ai: "bg-purple-500/10 text-purple-500 ring-purple-500/20",
default: "bg-[#1a1a1a] text-gray-400 ring-[#262626]",
};
return (
{children}
);
}
));
Badge.displayName = "Badge";
export { Badge };