Files
ae39f486-6aa1-4df7-aff5-e68…/src/components/shared/PricingBadge.tsx
2026-04-15 20:15:51 +00:00

26 lines
624 B
TypeScript

"use client";
import { cls } from "@/lib/utils";
import type { LucideIcon } from "lucide-react";
interface PricingBadgeProps {
badge: string;
badgeIcon?: LucideIcon;
className?: string;
}
const PricingBadge = ({
badge,
badgeIcon: BadgeIcon,
className = "",
}: PricingBadgeProps) => {
return (
<div className={cls("relative z-1 inline-flex items-center gap-2 px-4 py-2 w-fit card rounded-theme text-sm", className)}>
{BadgeIcon && <BadgeIcon className="relative z-1 h-[1em] w-auto" />}
<span>{badge}</span>
</div>
);
};
export default PricingBadge;