UNPKG

@justinechang39/maki

Version:

AI-powered CLI agent for file operations, CSV manipulation, todo management, and web content fetching using OpenRouter

15 lines (14 loc) 877 B
import { Box, Text } from 'ink'; import React from 'react'; import { AVAILABLE_MODELS } from '../core/config.js'; export const ModelSelector = ({ selectedIndex, onSelect }) => { return (React.createElement(Box, { flexDirection: "column", paddingX: 2 }, React.createElement(Box, { marginBottom: 1 }, React.createElement(Text, { bold: true, color: "yellow" }, "Select a model to use:")), AVAILABLE_MODELS.map((model, index) => (React.createElement(Box, { key: model, paddingY: 0 }, React.createElement(Text, { color: index === selectedIndex ? 'cyan' : 'white' }, index === selectedIndex ? '❯ ' : ' ', model)))), React.createElement(Box, { marginTop: 1 }, React.createElement(Text, { dimColor: true }, "Use \u2191\u2193 arrows to navigate, Enter to select, Ctrl+C to exit")))); };