Files
llmx/codex-cli/src/components/select-input/indicator.tsx

22 lines
416 B
TypeScript
Raw Normal View History

import figures from "figures";
import { Box, Text } from "ink";
import React from "react";
export type Props = {
readonly isSelected?: boolean;
};
function Indicator({ isSelected = false }: Props): JSX.Element {
return (
<Box marginRight={1}>
{isSelected ? (
<Text color="blue">{figures.pointer}</Text>
) : (
<Text> </Text>
)}
</Box>
);
}
export default Indicator;