mirror of
https://github.com/openai/codex.git
synced 2026-04-30 03:12:20 +03:00
(fix) do not transitively rely on deprecated lodash deps (#175)
Signed-off-by: Thibault Sottiaux <tibo@openai.com>
This commit is contained in:
committed by
GitHub
parent
057f113c6d
commit
f3f9e41a15
21
codex-cli/src/components/select-input/Indicator.tsx
Normal file
21
codex-cli/src/components/select-input/Indicator.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user