(props: UnavailableIconWrapperProps)
| 555 | } |
| 556 | |
| 557 | function UnavailableIconWrapper(props: UnavailableIconWrapperProps) { |
| 558 | let {direction, size, id} = props; |
| 559 | let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2'); |
| 560 | |
| 561 | return ( |
| 562 | <div |
| 563 | slot="descriptor" |
| 564 | className={mergeStyles(descriptor, style({marginBottom: fontRelative(-1)}))} |
| 565 | id={id}> |
| 566 | <Provider values={[[IconContext, {slots: {icon: {styles: descriptorIcon({size})}}}]]}> |
| 567 | <InfoCircleIcon |
| 568 | aria-label={stringFormatter.format('menu.unavailable')} |
| 569 | className={style({ |
| 570 | scaleX: { |
| 571 | direction: { |
| 572 | rtl: -1 |
| 573 | } |
| 574 | } |
| 575 | })({direction})} |
| 576 | /> |
| 577 | </Provider> |
| 578 | </div> |
| 579 | ); |
| 580 | } |
| 581 | |
| 582 | export function MenuItem(props: MenuItemProps): ReactNode { |
| 583 | let ref = useRef(null); |
nothing calls this directly
no test coverage detected