spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / diff / tests / fixtures / pane-view / docked-pane.ts
20 lines · 573 BRaw
1import type { On, RenderElement } from 'claude-code'
2import type { Engine } from 'claude-code/testing'
3
4import type PaneState from '../../../hooks/pane-state'
5import { docksPane } from './docks-pane.js'
6
7/**
8 * The pane docked beneath the plugin over one model, drawn once through the
9 * engine: the tree the engine took.
10 *
11 * @param $ the test's `$`
12 * @param on the test's `on`
13 * @param model the pane's model
14 * @returns the tree
15 */
16export const dockedPane = (
17 $: Engine,
18 on: On,
19 model: PaneState.PaneModel,
20): Promise<RenderElement> => docksPane($, on)(model)