import React from 'react'; import badges from '../configs/badges'; export interface BadgeProps { variant: keyof typeof badges; iconOnly?: boolean; icon?: string; title?: string; discountPercentage?: string; theme?: string; top?: `top-${string}`; right?: `right-${string}`; } const Badge = ({ variant = 'custom', discountPercentage, icon, title, iconOnly, theme = '', top = 'top-1', right = 'right-1', }: BadgeProps) => { return (