UNPKG

emv

Version:

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

15 lines 1.07 kB
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; import { Box, Text, useInput } from 'ink'; import { Header, Footer, CardBox } from '../components/index.js'; export function WelcomeScreen({ onContinue }) { useInput((input, key) => { if (key.return || input === ' ') { onContinue(); } }); return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Header, {}), _jsxs(CardBox, { title: "Welcome", children: [_jsxs(Text, { children: ["Welcome to the", ' ', _jsx(Text, { color: "cyan", bold: true, children: "EMV Interactive Explorer" }), "!"] }), _jsx(Text, { children: " " }), _jsx(Text, { color: "gray", children: "This tool lets you explore EMV chip cards connected via PC/SC readers." }), _jsx(Text, { color: "gray", children: "You can discover applications, read card data, and verify PINs." })] }), _jsx(Footer, { hints: [ { keys: 'Enter', description: 'Start' }, { keys: 'q', description: 'Quit' }, ] })] })); } //# sourceMappingURL=WelcomeScreen.js.map