import { Box, Text } from 'ink' import type { Theme } from '../theme.js' export function CommandPalette({ matches, t }: { matches: [string, string][]; t: Theme }) { if (!matches.length) { return null } return ( {matches.map(([cmd, desc], i) => ( {cmd} {desc ? — {desc} : null} ))} ) }