TorbatYar/frontend/components/ui/Badge.tsx
Mortezakoohjani 800b0ba2c5 Deploy TorbatYar for torbatyar.ir with nginx multi-tenant routing.
Wire production domain, CORS for tenant subdomains, celery volume mounts, and nginx reverse proxy configs for apex, API, identity, auth, and wildcard tenants.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-21 21:43:33 +03:30

24 lines
649 B
TypeScript

import type { ReactNode } from "react";
export interface BadgeProps {
children: ReactNode;
variant?: "default" | "primary" | "muted";
className?: string;
}
const variants = {
default: "bg-gray-100 text-gray-700",
primary: "bg-[var(--color-primary-muted)] text-primary",
muted: "bg-[var(--color-secondary-muted)] text-secondary/70",
};
export function Badge({ children, variant = "default", className = "" }: BadgeProps) {
return (
<span
className={`inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ${variants[variant]} ${className}`}
>
{children}
</span>
);
}