import React from 'react' ; import { RoundedBadge } from './rounded_badge' ; import { RoundedBadgeAntenna } from './rounded_badge_antenna' ; export type AndOr = 'and' | 'or' ; export interface AndOrBadgeProps { type : AndOr ; includeAntennas ? : boolean ; } /** Displays AND / OR in a round badge */ export const AndOrBadge = React . memo < AndOrBadgeProps > ( ( { type , includeAntennas = false } ) => { return includeAntennas ? < RoundedBadgeAntenna type = { type } /> : <RoundedBadge type={type}/ > ; } ) ; AndOrBadge . displayName = 'AndOrBadge' ;