Files
tkmind_go/ui/text/src/components/Rule.tsx
T
2026-04-14 14:17:01 +00:00

13 lines
322 B
TypeScript

import React from "react";
import { Text } from "ink";
import { RULE_COLOR } from "../colors.js";
interface RuleProps {
width: number;
}
export const Rule = React.memo(function Rule({ width }: RuleProps) {
const ruleWidth = Math.max(width, 1);
return <Text color={RULE_COLOR}>{"─".repeat(ruleWidth)}</Text>;
});