import cx from 'classnames'; import './styles.scss'; type BadgeProps = { variant: 'primary' | 'secondary'; caption: string; iconSrc: string; alt: string; }; /** * @since 3.0.0 */ export default function Badge({variant, caption, iconSrc, alt}: BadgeProps) { return (