(shell: HTMLElement | null, expanded: boolean)
| 40 | } |
| 41 | |
| 42 | function syncShellClasses(shell: HTMLElement | null, expanded: boolean): void { |
| 43 | if (!shell) { |
| 44 | return; |
| 45 | } |
| 46 | shell.classList.toggle('expanded', expanded); |
| 47 | shell.classList.toggle('collapsed', !expanded); |
| 48 | } |
| 49 | |
| 50 | export function createToolShellController(options: CreateToolShellControllerOptions): ToolShellController { |
| 51 | const { shell, toggleButton, initialExpanded, onToggle, onScrollAfterExpand, onRender } = options; |
no outgoing calls
no test coverage detected