import { Plus } from '@transferwise/icons'; import { Flag } from '@wise/art'; import StatusIcon, { StatusIconProps } from '../statusIcon'; import Circle from '../common/circle'; import Image from '../image'; export type Props = { status?: StatusIconProps['sentiment']; flagCode?: string; imgSrc?: string; icon?: React.ReactNode; type?: 'action' | 'reference' | 'notification' | 'online'; size?: 16 | 24; }; /** * Common pre-built badge variants. */ export default function BadgeAssets({ status, flagCode, imgSrc, icon = null, type = 'action', size, }: Props) { if (status) { return ; } if (flagCode) { return ( ); } if (imgSrc) { return ( ); } if (['action', 'reference'].includes(type)) { return ( {icon ?? } ); } return null; }