()
| 119 | } |
| 120 | return { |
| 121 | isCollapsed, |
| 122 | toggleCollapsed: () => setCollapsed((previous) => !previous), |
| 123 | setCollapsed, |
| 124 | } |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Handing a drag from the Plugins strip over to the workspace. |
| 129 | * |
| 130 | * The strip and the workspace are siblings, and only the workspace knows where |
| 131 | * the panes are, so the workspace registers a handler here and the strip calls it |
| 132 | * the moment a press becomes a drag. |
| 133 | * |
| 134 | * A **direct call**, not a signal: an effect reacting to a signal runs a |
no test coverage detected