(props: UnavailableIconWrapperProps)
| 799 | } |
| 800 | |
| 801 | function UnavailableIconWrapper(props: UnavailableIconWrapperProps) { |
| 802 | let {direction, size, id} = props; |
| 803 | let stringFormatter = useLocalizedStringFormatter(intlMessages, '@react-spectrum/s2'); |
| 804 | |
| 805 | return ( |
| 806 | <div |
| 807 | slot="descriptor" |
| 808 | className={mergeStyles(descriptor, style({marginBottom: fontRelative(-1)}))} |
| 809 | id={id}> |
| 810 | <Provider values={[[IconContext, {slots: {icon: {styles: descriptorIcon({size})}}}]]}> |
| 811 | <InfoCircleIcon |
| 812 | aria-label={stringFormatter.format('menu.unavailable')} |
| 813 | className={style({ |
| 814 | scaleX: { |
| 815 | direction: { |
| 816 | rtl: -1 |
| 817 | } |
| 818 | } |
| 819 | })({direction})} |
| 820 | /> |
| 821 | </Provider> |
| 822 | </div> |
| 823 | ); |
| 824 | } |
| 825 | |
| 826 | export function MenuItem(props: MenuItemProps): ReactNode { |
| 827 | let ref = useRef(null); |
nothing calls this directly
no test coverage detected