emv
Version:
EMV / Chip and PIN CLI and library for PC/SC card readers
12 lines • 594 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Box, useInput } from 'ink';
import { Header, Footer, StatusBar } from '../components/index.js';
export function ErrorScreen({ message, onBack }) {
useInput((input, key) => {
if (key.return || key.escape || input === ' ') {
onBack();
}
});
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Header, {}), _jsx(StatusBar, { message: message, type: "error" }), _jsx(Footer, { hints: [{ keys: 'Enter', description: 'Back' }] })] }));
}
//# sourceMappingURL=ErrorScreen.js.map