/** * Icons the sidebar needs beyond the primitives set: a terminal glyph (the * icon library has none) and the per-tab-type icon mapping shared by the * tab strip, the + menu, and the empty-pane cards. */ import type { ReactNode } from 'react' import { IconBranchOutline16, IconCodeOutline16, IconFolderOpen16, IconThinkOutline16, } from '@deepseek-ai/dsh-client-ui-primitives' import type { IconProps } from '@deepseek-ai/dsh-client-ui-primitives' import type { TabType } from './state.ts' /** * Terminal glyph in the app's outline style (1.5px stroke, currentColor): * a rounded frame with a prompt chevron and underscore cursor. */ export const IconTerminalOutline16 = ({ size = 16, className }: IconProps) => ( ) /** Diff glyph in the app's outline style: a file frame with a plus and a minus row. */ export const IconDiffOutline16 = ({ size = 16, className }: IconProps) => ( ) /** The one icon per tab type (shared by tabs, the + menu, and pane cards). */ export function tabTypeIcon(type: TabType, size = 16): ReactNode { switch (type) { case 'explorer': return case 'git': return case 'terminal': return case 'subagent': return case 'editor': return case 'diff': return default: return null } }