Sha256: 513efbcee1102d3622bd444c215addb5bc38a77b4976834f5058fb6b8a398371

Contents?: true

Size: 714 Bytes

Versions: 1

Compression:

Stored size: 714 Bytes

Contents

import React from 'react';
import PropTypes from 'prop-types';
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';

import DefaultEmptyState from 'foremanReact/components/common/EmptyState';
import { translate as __ } from 'foremanReact/common/I18n';

const EmptyLogsRow = ({ onClear }) => (
  <DefaultEmptyState
    header={__('No results found')}
    icon={<SearchIcon />}
    description={__(
      'No results match this filter criteria. Clear all filters and try again.'
    )}
    action={{
      title: __('Clear all filters'),
      url: '#',
      onClick: onClear,
    }}
  />
);

EmptyLogsRow.propTypes = {
  onClear: PropTypes.func.isRequired,
};

export default EmptyLogsRow;

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foreman_host_reports-1.0.0 webpack/src/Router/HostReports/ShowPage/Components/ReportLogs/Components/EmptyLogsRow.js