// Copyright 2017-2020 @polkadot/apps authors & contributors // This software may be modified and distributed under the terms // of the Apache-2.0 license. See the LICENSE file for details. import { BareProps as Props } from '@polkadot/react-components/types'; import React, { useMemo } from 'react'; import styled from 'styled-components'; import AccountSidebar from '@polkadot/app-accounts/Sidebar'; import { getSystemChainColor } from '@polkadot/apps-config/ui'; import { defaultColor } from '@polkadot/apps-config/ui/general'; import GlobalStyle from '@polkadot/react-components/styles'; import { useApi } from '@polkadot/react-hooks'; import Signer from '@polkadot/react-signer'; import ConnectingOverlay from './overlays/Connecting'; import Content from './Content'; import Menu from './Menu'; import WarmUp from './WarmUp'; export const PORTAL_ID = 'portals'; function Apps ({ className = '' }: Props): React.ReactElement { const { systemChain, systemName } = useApi(); const uiHighlight = useMemo( () => getSystemChainColor(systemChain, systemName), [systemChain, systemName] ); return ( <>
); } export default React.memo(styled(Apps)` box-sizing: border-box; display: flex; flex-direction: column; min-height: 100vh; `);