UNPKG

emv

Version:

EMV / Chip and PIN CLI and library for PC/SC card readers

18 lines 637 B
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime"; import { Box, Text } from 'ink'; export function StatusBar({ message, type = 'info' }) { const colors = { info: 'blue', success: 'green', warning: 'yellow', error: 'red', }; const icons = { info: 'ℹ', success: '✓', warning: '⚠', error: '✗', }; return (_jsxs(Box, { marginY: 1, paddingX: 2, children: [_jsxs(Text, { color: colors[type], bold: true, children: [icons[type], ' '] }), _jsx(Text, { color: colors[type], children: message })] })); } //# sourceMappingURL=StatusBar.js.map