// Copyright 2017-2023 @polkadot/react-components authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { DropdownItemProps, DropdownProps } from 'semantic-ui-react'; import React, { useCallback, useEffect, useRef, useState } from 'react'; import { Button as SUIButton, Dropdown as SUIDropdown } from 'semantic-ui-react'; import { isUndefined } from '@polkadot/util'; import Labelled from './Labelled.js'; import { styled } from './styled.js'; interface Props