Fix: Change file name to start with small letter instead of captial l… (#356)
This commit is contained in:
committed by
GitHub
parent
bec3947058
commit
d69a17ac49
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