import React from 'react'; import classnames from 'classnames'; import { Display } from '../../../helpers/constants/design-system'; import { Box } from '..'; import type { PolymorphicRef } from '../box'; import { BadgeWrapperPosition, BadgeWrapperAnchorElementShape, BadgeWrapperProps, BadgeWrapperComponent, } from './badge-wrapper.types'; export const BadgeWrapper: BadgeWrapperComponent = React.forwardRef( ( { children, badge, badgeContainerProps, position = BadgeWrapperPosition.topRight, positionObj, anchorElementShape = BadgeWrapperAnchorElementShape.circular, className = '', ...props }: BadgeWrapperProps, ref?: PolymorphicRef, ) => ( {/* Generally the AvatarAccount or AvatarToken */} {children} {/* Generally the AvatarNetwork at SIZES.XS */} {badge} ), );