(workspaceId: string)
| 4518 | * WorkspaceState would cascade every transcript delta through the shell and sidebars. |
| 4519 | */ |
| 4520 | export function useWorkspaceShellStatus(workspaceId: string): WorkspaceShellStatus { |
| 4521 | const store = getStoreInstance(); |
| 4522 | |
| 4523 | return useSyncExternalStore( |
| 4524 | (listener) => store.subscribeKey(workspaceId, listener), |
| 4525 | () => store.getWorkspaceShellStatus(workspaceId) |
| 4526 | ); |
| 4527 | } |
| 4528 | |
| 4529 | /** |
| 4530 | * Hook to access the raw store for imperative operations. |
no test coverage detected