import{jsx as t,jsxs as e,Fragment as i}from"react/jsx-runtime";import r from"classnames";import{forwardRef as o}from"react";import{LiveDotIndicator as a}from"../LiveDotIndicator/LiveDotIndicator.js";import{Text as l}from"../Text/Text.js";import{Tooltip as m}from"../Tooltip/Tooltip.js";import s from"./IndicatorLive.scss.js";var n={large:s.large,medium:s.medium,small:s.small},d={buttonLike:s.buttonLike,indicator:s.indicator},c={large:18,medium:16,small:16},v={live:s.live,offline:s.offline},f=function(r,o){return"live"===r?"Data receiving in real-time":e(i,{children:["Asset isn’t Live",o&&e(i,{children:[t("br",{}),"Last active: ",o]})]})},p=o((function(i,o){var p=i.className,u=i.testId,L=i.children,b=i.state,g=i.size,h=void 0===g?"medium":g,j=i.type,T=void 0===j?"buttonLike":j,x=i.lastActive,I=i.disableTooltip,N=L||("live"===b?"Live":"Offline");return t(m,{title:f(b,x),placement:"bottom-start",disabled:I,children:e(l,{tagName:"div",className:r(s.root,n[h],d[T],v[b],p),"data-testid":u,size:c[h],ref:o,children:[N,t(a,{state:b,className:s.dot})]})})}));export{p as IndicatorLive};
//# sourceMappingURL=IndicatorLive.js.map
