// Copyright 2017-2018 @polkadot/ui-react-rx 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 { Text } from '@polkadot/types'; import { withObservableDiv } from './with/index'; const Component: React.ComponentType = withObservableDiv('chain')( (value: Text | string = 'unknown'): string => value.toString(), { className: 'rx--Chain' } ); export default Component;