import PropTypes from 'prop-types'; import React from 'react'; import Button from 'Components/Link/Button'; import { kinds } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; import styles from './NoIndexer.css'; function NoIndexer(props) { const { totalItems, onAddIndexerPress } = props; if (totalItems > 0) { return (
{translate('AllIndexersHiddenDueToFilter')}
); } return (
No indexers found, to get started you'll want to add a new indexer.
); } NoIndexer.propTypes = { totalItems: PropTypes.number.isRequired, onAddIndexerPress: PropTypes.func.isRequired }; export default NoIndexer;