()
| 181 | let cachedMenuItemHeight: string | undefined; |
| 182 | |
| 183 | function getMenuItemHeight() { |
| 184 | if (cachedMenuItemHeight) { |
| 185 | return cachedMenuItemHeight; |
| 186 | } |
| 187 | const root = document.documentElement; |
| 188 | const styles = getComputedStyle(root); |
| 189 | const menuItemHeight = styles.getPropertyValue('--context-menu-item-height').trim(); |
| 190 | cachedMenuItemHeight = menuItemHeight; |
| 191 | |
| 192 | return menuItemHeight; |
| 193 | } |
| 194 | |
| 195 | export function createContextMenu(children: React.ReactNode[], { |
| 196 | event, |
no outgoing calls
no test coverage detected
searching dependent graphs…