( label: React.ReactNode, key: React.Key, icon?: React.ReactNode, children?: MenuItem[], type?: 'group', access?: string[] | string )
| 32 | } |
| 33 | |
| 34 | export function getItem( |
| 35 | label: React.ReactNode, |
| 36 | key: React.Key, |
| 37 | icon?: React.ReactNode, |
| 38 | children?: MenuItem[], |
| 39 | type?: 'group', |
| 40 | access?: string[] | string |
| 41 | ): MenuItem { |
| 42 | return { |
| 43 | key, |
| 44 | icon, |
| 45 | children, |
| 46 | label, |
| 47 | type, |
| 48 | access |
| 49 | } as MenuItem |
| 50 | } |
| 51 | |
| 52 | export function getTabItem( |
| 53 | label: React.ReactNode, |
no outgoing calls
no test coverage detected