(rootNode: SplootNode)
| 32 | } |
| 33 | |
| 34 | function 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 | |
| 46 | export function Tray(props: TrayProps) { |
| 47 | const { rootNode, startDrag, moduleTrayLoader } = props |