// Copyright 2017-2020 @polkadot/react-components 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 } from './types'; import React, { useEffect, useRef, useState } from 'react'; import styled from 'styled-components'; import SUIButton from 'semantic-ui-react/dist/commonjs/elements/Button/Button'; import SUIDropdown, { DropdownProps } from 'semantic-ui-react/dist/commonjs/modules/Dropdown/Dropdown'; import { isUndefined } from '@polkadot/util'; import { classes } from './util'; import Labelled from './Labelled'; interface Props