UNPKG

@awsui/components-react

Version:

AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A

16 lines (15 loc) 742 B
import React, { useCallback } from 'react'; import { fireNonCancelableEvent } from '../internal/events'; import Icon from '../icon'; import Link from '../link'; import styles from './styles.css.js'; export default (function (_a) { var children = _a.children, recoveryText = _a.recoveryText, onRecoveryClick = _a.onRecoveryClick; var onFollow = useCallback(function () { return fireNonCancelableEvent(onRecoveryClick); }, [onRecoveryClick]); return (React.createElement("div", { className: styles['error-screen'] }, React.createElement(Icon, { name: "status-negative", variant: "error" }), "\u00A0", children, "\u00A0", React.createElement(Link, { onFollow: onFollow }, recoveryText))); });