Function
ContextMenuSub
({ title, icon, children, disabled })
Source from the content-addressed store, hash-verified
| 97 | } |
| 98 | |
| 99 | export const ContextMenuSub: React.FC<ContextMenuSub> = ({ title, icon, children, disabled }) => { |
| 100 | return ( |
| 101 | <MenuSub> |
| 102 | <MenuSubTrigger disabled={disabled} css={itemCls(disabled)}> |
| 103 | {icon && <span css={iconCls(disabled)}>{icon}</span>} |
| 104 | {title} |
| 105 | <div css={rightCls(disabled)}> |
| 106 | <Icon name="arrowRight" /> |
| 107 | </div> |
| 108 | </MenuSubTrigger> |
| 109 | <MenuSubContent sideOffset={2} alignOffset={-5}> |
| 110 | {children} |
| 111 | </MenuSubContent> |
| 112 | </MenuSub> |
| 113 | ) |
| 114 | } |
| 115 | |
| 116 | export interface ContextMenuSeparatorProps { |
| 117 | className?: string |
Callers
nothing calls this directly
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…