cisco-vpn-rdp-connecter
Version:
Connect to Cisco AnyConnect VPN and open a Microsoft Remote Desktop (RDP) window
15 lines (14 loc) • 677 B
JavaScript
/* eslint-disable react/require-default-props */
import React from 'react';
import { Text, Box } from 'ink';
import logSymbols from 'log-symbols';
export default function ErrorMessage({ message, commandSuggestion, commandSuggestionSuffix }) {
return (React.createElement(Box, { flexDirection: "column" },
React.createElement(Text, { color: "redBright", bold: true }, `${logSymbols.error} ${message}`),
commandSuggestion && commandSuggestionSuffix && (React.createElement(Text, null,
"Use",
' ',
React.createElement(Text, { dimColor: true }, commandSuggestion),
' ',
commandSuggestionSuffix))));
}