// Copyright 2017-2019 @polkadot/app-explorer 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 { I18nProps } from '@polkadot/ui-app/types'; import React from 'react'; import { EventRecord } from '@polkadot/types'; import EventsDisplay from '../Events'; import translate from '../translate'; type Props = I18nProps & { value?: Array }; class Events extends React.PureComponent { render () { const { t, value } = this.props; if (!value || !value.length) { return null; } return (

{t('events')}

); } } export default translate(Events);