( label: React.ReactNode, key: React.Key, children?: MenuItem[], type?: 'group', access?: string )
| 50 | } |
| 51 | |
| 52 | export function getTabItem( |
| 53 | label: React.ReactNode, |
| 54 | key: React.Key, |
| 55 | children?: MenuItem[], |
| 56 | type?: 'group', |
| 57 | access?: string |
| 58 | ) { |
| 59 | return { |
| 60 | key, |
| 61 | label, |
| 62 | access |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | export function transformMenuData(data: any[]): MenuItem[] { |
| 67 | return data.map((item) => { |
nothing calls this directly
no outgoing calls
no test coverage detected