import React, { HTMLAttributes } from 'react'; import { Dropdown } from '../common/dropdown'; import { ChevronDownIcon } from '../common/icons/chevron_down_icon'; interface OwnProps extends HTMLAttributes { walletConnectionContent: React.ReactNode; shouldCloseDropdownOnClickOutside?: boolean; headerText: string; ethAccount: string; } type Props = OwnProps; export class WalletConnectionStatusContainer extends React.PureComponent { public render = () => { const { headerText, walletConnectionContent, ethAccount, shouldCloseDropdownOnClickOutside, ...restProps } = this.props; const status: string = ethAccount ? 'active' : ''; const header = (
{headerText}
); const body = <>{walletConnectionContent}; return ( ); }; }