import React, { FC } from 'react'; import { Box, Text } from 'ink'; import TextBox from './TextBox'; export interface ItemListProps { items : { [key:string]: string } } export const ItemList: FC = ({ items }) => { return ( { Object.keys(items).map((itemName, i) => ( {itemName}{': '}{items[itemName]} )) } ) } export default ItemList;