(newOption: string)
| 78 | |
| 79 | const sidebarOption = useSearchParamsKey({ key: "sidebar" }); |
| 80 | const setSidebarOption = (newOption: string) => { |
| 81 | if (sidebarOption.value === newOption) { |
| 82 | sidebarOption.deleteValue(); |
| 83 | } else { |
| 84 | sidebarOption.setValue(newOption); |
| 85 | } |
| 86 | }; |
| 87 | |
| 88 | const resources = [...workspace.latest_build.resources].sort( |
| 89 | (a, b) => countAgents(b) - countAgents(a), |