mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-07-31 12:22:14 +03:00
Adiciona dashboard TUI com 7 abas (Overview, Combos, Providers, Keys, Logs, Health, Cost) via Ink, 13 componentes reutilizáveis em tui-components/, menu interativo ao iniciar sem subcomando, e flag --tui no comando dashboard.
19 lines
487 B
JavaScript
19 lines
487 B
JavaScript
import React from "react";
|
|
import { Box, Text } from "ink";
|
|
import TextInput from "ink-text-input";
|
|
|
|
export function MultilineInput({ label, value, onChange, placeholder }) {
|
|
return (
|
|
<Box flexDirection="column">
|
|
{label && (
|
|
<Text bold dimColor>
|
|
{label}
|
|
</Text>
|
|
)}
|
|
<Box borderStyle="single" borderColor="gray" paddingX={1}>
|
|
<TextInput value={value} onChange={onChange} placeholder={placeholder} />
|
|
</Box>
|
|
</Box>
|
|
);
|
|
}
|