UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

17 lines 877 B
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React, { useCallback } from 'react'; import InternalIcon from '../icon/internal'; import { fireNonCancelableEvent } from '../internal/events'; import InternalLink from '../link/internal'; import styles from './styles.css.js'; export default ({ children, recoveryText, onRecoveryClick }) => { const onFollow = useCallback(() => fireNonCancelableEvent(onRecoveryClick), [onRecoveryClick]); return (React.createElement("div", { className: styles['error-screen'] }, React.createElement(InternalIcon, { name: "status-negative", variant: "error" }), "\u00A0", children, "\u00A0", React.createElement(InternalLink, { variant: "recovery", onFollow: onFollow }, recoveryText))); }; //# sourceMappingURL=error-screen.js.map