import React, { FC } from 'react'; import { Text, TextProps, Box } from 'ink'; export interface ChevronTextProps extends TextProps { indent?: number } export const ChevronText:FC = ({ children, indent, ...otherProps }) => { const text = {'ยป '}{ children }; if (typeof indent === 'number') { return {text} } else return text; } export default ChevronText