MCPcopy Create free account
hub / github.com/SplootCode/splootcode / getTrayListing

Function getTrayListing

packages/editor/src/components/tray/tray.tsx:34–44  ·  view source on GitHub ↗
(rootNode: SplootNode)

Source from the content-addressed store, hash-verified

32}
33
34function getTrayListing(rootNode: SplootNode): TrayCategory {
35 if (!rootNode || rootNode.type === PYTHON_FILE) {
36 const tray = PythonLanguageTray
37
38 return tray
39 }
40 return {
41 category: '',
42 entries: [],
43 }
44}
45
46export function Tray(props: TrayProps) {
47 const { rootNode, startDrag, moduleTrayLoader } = props

Callers 1

TrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected