@letanure/resend-cli
Version:
A command-line interface for Resend email API
7 lines • 599 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { Alert } from '@inkjs/ui';
import { Box, Text } from 'ink';
export const ErrorDisplay = ({ title = 'Error', message, suggestion }) => {
return (_jsxs(Box, { flexDirection: "column", children: [_jsx(Box, { marginBottom: 1, children: _jsx(Alert, { variant: "error", children: title }) }), _jsx(Box, { marginBottom: suggestion ? 1 : 0, children: _jsx(Text, { children: message }) }), suggestion && (_jsx(Box, { children: _jsx(Text, { color: "cyan", children: suggestion }) }))] }));
};
//# sourceMappingURL=ErrorDisplay.js.map