text: /*
   * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
   * or more contributor license agreements. Licensed under the Elastic License;
   * you may not use this file except in compliance with the Elastic License.
   */
  
  /*
   * React component for rendering EuiEmptyPrompt when no jobs were found.
   */
  
  import React from 'react';
  import { FormattedMessage } from '@kbn/i18n/react';
  
  import { EuiEmptyPrompt, EuiButton } from '@elastic/eui';
  
  export const ExplorerNoJobsFound = () => (
    <EuiEmptyPrompt
      iconType="alert"
      title={
        <h2>
          <FormattedMessage id="xpack.ml.explorer.noJobsFoundLabel" defaultMessage="No jobs found" />
        </h2>
      }
      actions={
        <EuiButton color="primary" fill href="ml#/jobs">
          <FormattedMessage
            id="xpack.ml.explorer.createNewJobLinkText"
            defaultMessage="Create new job"
          />
        </EuiButton>
      }
      data-test-subj="mlNoJobsFound"
    />
  );
  