/** * The shared chip button: one pill in the context row above the input. * @module dsh-git-graph/client/chips/Chip */ import type { ReactNode } from 'react' import { IconChevronDownOutlineMedium } from '@deepseek-ai/dsh-client-ui-primitives' import css from './context.module.css' /** Join conditional class names (the dependency-free clsx stand-in). */ export function cx(...parts: ReadonlyArray): string { return parts.filter((part): part is string => typeof part === 'string' && part !== '').join(' ') } /** Props of one context chip. */ export interface ChipProps { icon: ReactNode label: string ariaLabel: string open: boolean onClick: () => void /** The official hero-row seat style (transparent 28px pill beside the preset chip). */ hero?: boolean } /** The pill button shared by the project and branch chips. */ export function Chip({ icon, label, ariaLabel, open, onClick, hero = false }: ChipProps) { return ( ) } /** Full-screen transparent backdrop closing the open popover/dialog on click. */ export function Backdrop({ onClose }: { onClose: () => void }) { return
}