// Copyright 2017-2018 Jaco Greeff // This software may be modified and distributed under the terms // of the ISC license. See the LICENSE file for details. // @flow import type { I18nProps } from '@polkadot/ui-react-app/types'; import type { StorageQuery } from './types'; import React from 'react'; import translate from './translate'; import Query from './Query'; type Props = I18nProps & { onRemove: (id: number) => void, value?: Array }; function Queries ({ className, onRemove, style, value }: Props): React$Node { if (!value || !value.length) { return null; } return (
{value.map((query) => )}
); } export default translate(Queries);