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

19 lines 1.28 kB
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import clsx from 'clsx'; import { highContrastHeaderClassName } from '../../../internal/utils/content-header-utils'; import { createWidgetizedComponent } from '../../../internal/widgets'; import { AppLayoutNotificationsImplementation as AppLayoutNotifications } from '../notifications'; import { isWidgetReady } from '../state/invariants'; import styles from '../skeleton/styles.css.js'; export const TopContentSlotImplementation = ({ appLayoutProps, appLayoutState }) => { if (!isWidgetReady(appLayoutState)) { return null; } return (React.createElement(React.Fragment, null, appLayoutProps.notifications && (React.createElement("div", { className: clsx(styles['notifications-background'], appLayoutProps.headerVariant === 'high-contrast' && highContrastHeaderClassName) })), appLayoutProps.notifications && (React.createElement(AppLayoutNotifications, { appLayoutInternals: appLayoutState.appLayoutInternals }, appLayoutProps.notifications)))); }; export const createWidgetizedAppLayoutTopContentSlot = createWidgetizedComponent(TopContentSlotImplementation); //# sourceMappingURL=top-content-slot.js.map