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 / config-detail-of.ts
19 lines · 608 BRaw
1import type Views from '../../../hooks/views'
2import { SMALL_BODY } from './small-body.js'
3
4/**
5 * A config file as the detail view takes it: untracked with no body read,
6 * or tracked with a small body ready.
7 *
8 * @param isUntracked whether the file is untracked
9 * @returns the detail model
10 */
11export const configDetailOf = (isUntracked: boolean): Views.DetailModel => ({
12 words: { untrackedNoteOf: () => ['New file not yet staged.'] },
13 path: 'src/app/config.ts',
14 displayPath: 'src/app/config.ts',
15 isUntracked,
16 isBinary: false,
17 body: isUntracked ? undefined : SMALL_BODY,
18 isArmed: false,
19})