project/medusa-foundation-audit
| 1 | import React from "react" |
| 2 | import { Badge, BadgeProps } from "../Badge" |
| 3 | import clsx from "clsx" |
| 4 | |
| 5 | type BadgesListProps = { |
| 6 | badges: BadgeProps[] |
| 7 | className?: string |
| 8 | } |
| 9 | |
| 10 | export const BadgesList = ({ badges, className }: BadgesListProps) => { |
| 11 | return ( |
| 12 | <div className={clsx("flex flex-wrap gap-docs_0.5", className)}> |
| 13 | {badges.map((badgeProps, index) => ( |
| 14 | <Badge {...badgeProps} key={index} /> |
| 15 | ))} |
| 16 | </div> |
| 17 | ) |
| 18 | } |