Files
llmx/codex-cli/src/components/select-input/Item.tsx
Thibault Sottiaux f3f9e41a15 (fix) do not transitively rely on deprecated lodash deps (#175)
Signed-off-by: Thibault Sottiaux <tibo@openai.com>
2025-04-16 20:52:35 -07:00

14 lines
308 B
TypeScript

import { Text } from "ink";
import * as React from "react";
export type Props = {
readonly isSelected?: boolean;
readonly label: string;
};
function Item({ isSelected = false, label }: Props): JSX.Element {
return <Text color={isSelected ? "blue" : undefined}>{label}</Text>;
}
export default Item;