MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / getTabItem

Function getTabItem

frontend/packages/common/src/utils/navigation.tsx:52–64  ·  view source on GitHub ↗
(
  label: React.ReactNode,
  key: React.Key,
  children?: MenuItem[],
  type?: 'group',
  access?: string
)

Source from the content-addressed store, hash-verified

50}
51
52export 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
66export function transformMenuData(data: any[]): MenuItem[] {
67 return data.map((item) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected