UNPKG

dmux

Version:

Tmux pane manager with AI agent integration for parallel development workflows

30 lines 1.82 kB
import React from 'react'; import { Box, Text } from 'ink'; const CloseOptionsDialog = ({ pane, selectedIndex }) => { return (React.createElement(Box, { borderStyle: "double", borderColor: "red", paddingX: 1, marginTop: 1 }, React.createElement(Box, { flexDirection: "column" }, React.createElement(Text, { color: "red", bold: true }, "Close pane \"", pane.slug, "\"?"), React.createElement(Text, { dimColor: true }, "Select an option (ESC to cancel):"), React.createElement(Box, { flexDirection: "column", marginTop: 1 }, React.createElement(Box, null, React.createElement(Text, { color: selectedIndex === 0 ? 'cyan' : 'white' }, selectedIndex === 0 ? '▶ ' : ' ', "Merge & Prune - Merge worktree to main and close")), React.createElement(Box, null, React.createElement(Text, { color: selectedIndex === 1 ? 'cyan' : 'white' }, selectedIndex === 1 ? '▶ ' : ' ', "Merge Only - Merge worktree but keep pane open")), React.createElement(Box, null, React.createElement(Text, { color: selectedIndex === 2 ? 'cyan' : 'white' }, selectedIndex === 2 ? '▶ ' : ' ', "Delete Unsaved - Remove worktree (discard changes)")), React.createElement(Box, null, React.createElement(Text, { color: selectedIndex === 3 ? 'cyan' : 'white' }, selectedIndex === 3 ? '▶ ' : ' ', "Just Close - Close pane only")))))); }; export default CloseOptionsDialog; //# sourceMappingURL=CloseOptionsDialog.js.map