@equinor/fusion-framework-cli
Version:
--- title: Fusion Framework CLI ---
7 lines • 627 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
import { Typography } from '@equinor/eds-core-react';
export const ErrorViewer = ({ error }) => {
return (_jsxs(_Fragment, { children: [_jsxs("div", { style: { marginTop: 20, border: '1px solid' }, children: [_jsx(Typography, { variant: "h4", color: "warning", children: error.message }), _jsx("section", { style: { padding: 10 }, children: error.stack && _jsx("pre", { children: error.stack }) })] }), error.cause && _jsx(ErrorViewer, { error: error.cause })] }));
};
export default ErrorViewer;
//# sourceMappingURL=ErrorViewer.js.map