mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
14 lines
427 B
TypeScript
14 lines
427 B
TypeScript
import { Text } from "ink"
|
|
|
|
import * as theme from "../theme.js"
|
|
import { useTerminalSize } from "../hooks/TerminalSizeContext.js"
|
|
|
|
interface HorizontalLineProps {
|
|
active?: boolean
|
|
}
|
|
|
|
export function HorizontalLine({ active = false }: HorizontalLineProps) {
|
|
const { columns } = useTerminalSize()
|
|
const color = active ? theme.borderColorActive : theme.borderColor
|
|
return <Text color={color}>{"─".repeat(columns)}</Text>
|
|
}
|