// Copyright 2017-2019 @polkadot/ui-app 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 '@polkadot/ui-app/types'; import React from 'react'; import { InputFile } from '@polkadot/ui-app'; import Bare from './Bare'; type Props = BareProps & { defaultValue?: any, isDisabled?: boolean, isError?: boolean, label?: React.ReactNode, onChange?: (contents: Uint8Array) => void, placeholder?: string, withLabel?: boolean }; export default class File extends React.PureComponent { render () { const { className, isDisabled, isError = false, label, onChange, placeholder, style, withLabel } = this.props; return ( ); } }