UNPKG

@codewithmehmet/paul-cli

Version:

Intelligent project file scanner and Git change tracker with interactive interface

26 lines 686 B
import React from 'react'; import { Box, Text } from 'ink'; import SelectInput from 'ink-select-input'; export default function MainMenu({ onSelect }) { const items = [{ label: '📁 Scan files', value: 'ls' }, { label: '🔄 Git changes', value: 'diff' }]; const handleSelect = item => { onSelect(item.value); }; return /*#__PURE__*/React.createElement(Box, { flexDirection: "column" }, /*#__PURE__*/React.createElement(Text, { color: "cyan", bold: true }, "\uD83D\uDE80 Paul CLI"), /*#__PURE__*/React.createElement(Text, null, " "), /*#__PURE__*/React.createElement(SelectInput, { items: items, onSelect: handleSelect })); }