/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.discoverLogExplorer_bundle_jsonpfunction=window.discoverLogExplorer_bundle_jsonpfunction||[]).push([[6],{98:function(t,e,o){"use strict";o.r(e),o.d(e,"DatasetsList",(function(){return c})),o(2);var s=o(12),r=o(16),n=o(28),i=o(60),a=o(0);const c=({datasets:t,error:e,isLoading:o,onRetry:c,onDatasetClick:l})=>{const u=null==t||t.length<=0,d=null!==e;return o?Object(a.jsx)(i.a,null):d?Object(a.jsx)(s.EuiEmptyPrompt,{"data-test-subj":"datasetErrorPrompt",iconType:"warning",iconColor:"danger",paddingSize:"m",title:Object(a.jsx)("h2",null,n.j),titleSize:"s",body:Object(a.jsx)(r.FormattedMessage,{id:"xpack.discoverLogExplorer.datasetSelector.noDatasetsError",defaultMessage:"An {error} occurred while getting your data streams. Please retry.",values:{error:Object(a.jsx)(s.EuiToolTip,{content:e.message},Object(a.jsx)(s.EuiText,{color:"danger"},n.f))}}),actions:[Object(a.jsx)(s.EuiButton,{onClick:c},n.h)]}):u?Object(a.jsx)(s.EuiEmptyPrompt,{"data-test-subj":"emptyDatasetPrompt",iconType:"search",paddingSize:"m",title:Object(a.jsx)("h2",null,n.j),titleSize:"s",body:Object(a.jsx)("p",null,n.i)}):t.map((t=>Object(a.jsx)(s.EuiContextMenuItem,{key:t.id,onClick:()=>l(t)},t.name)))};e.default=c}}]);