({
kind = 'default',
size = 'medium',
badgeText,
children,
as: Component = 'a',
...args
})
| 15 | } & ComponentProps<LinkLike>; |
| 16 | |
| 17 | const BadgeGroup: FC<PropsWithChildren<BadgeGroupProps>> = ({ |
| 18 | kind = 'default', |
| 19 | size = 'medium', |
| 20 | badgeText, |
| 21 | children, |
| 22 | as: Component = 'a', |
| 23 | ...args |
| 24 | }) => ( |
| 25 | <Component className={`${styles.wrapper} ${styles[kind]}`} {...args}> |
| 26 | {badgeText && ( |
| 27 | <Badge kind={kind} size={size} className={styles.badge}> |
| 28 | {badgeText} |
| 29 | </Badge> |
| 30 | )} |
| 31 | |
| 32 | <span className={styles.message}>{children}</span> |
| 33 | |
| 34 | {args.target === '_blank' && <ArrowUpRightIcon className={styles.icon} />} |
| 35 | </Component> |
| 36 | ); |
| 37 | |
| 38 | export default BadgeGroup; |
nothing calls this directly
no outgoing calls
no test coverage detected