// Copyright 2017-2018 @polkadot/ui-app authors & contributors // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. import { SectionItem } from '@polkadot/params/types'; import { Storages, Storage$Sections } from '@polkadot/storage/types'; import { DropdownOptions } from '../util/types'; import { I18nProps } from '../types'; import React from 'react'; import Dropdown from '../Dropdown'; import classes from '../util/classes'; import translate from '../translate'; type Props = I18nProps & { defaultValue?: Storage$Sections, isError?: boolean, label?: string, onChange: (value: Storage$Sections) => void, options: DropdownOptions, value: SectionItem, withLabel?: boolean }; class SelectSection extends React.PureComponent { render () { const { className, defaultValue, isError, label, onChange, options, style, t, value: { section }, withLabel } = this.props; return ( ); } } export default translate(SelectSection);