({ items, onClick, isActive, mt }: BadgeGroupProps)
| 44 | const DISPLAYS = ['auto', 'swap', 'block', 'fallback', 'optional']; |
| 45 | |
| 46 | const BadgeGroup = ({ items, onClick, isActive, mt }: BadgeGroupProps) => ( |
| 47 | <Group mt={mt}> |
| 48 | {items.map((item) => ( |
| 49 | <Badge |
| 50 | key={item} |
| 51 | className={classes.badge} |
| 52 | onClick={() => { |
| 53 | onClick(item); |
| 54 | }} |
| 55 | data-active={Boolean(isActive(item))} |
| 56 | > |
| 57 | {item} |
| 58 | </Badge> |
| 59 | ))} |
| 60 | </Group> |
| 61 | ); |
| 62 | |
| 63 | const VariableSimple = ({ metadata, variable }: InstallCodeProps) => { |
| 64 | const [isActive, setActive] = useState<Record<string, boolean>>({ |
nothing calls this directly
no outgoing calls
no test coverage detected