File size: 517 Bytes
c9c900b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | /* @jsxRuntime classic */
/* @jsx h */
/* @jsxFrag Fragment */
import type { RenderElement } from 'claude-code'
import type { Kit } from '../kit'
/**
* A dim rule across the body: between the list and the selected file, and
* under that file's name.
*
* @param kit the elements and the width
* @returns the rule
*/
export function divider(kit: Kit): RenderElement {
const { Text } = kit.ui
return (
<Text dimColor wrap="truncate-end">
{'─'.repeat(Math.max(1, kit.columns))}
</Text>
)
}
|