import r from"@babel/runtime/helpers/defineProperty";import{jsx as e,jsxs as s,Fragment as t}from"react/jsx-runtime";import a from"classnames";import{ALERT_STATES as o,ALERT_ICONS as i}from"../constants.js";import{DQAlertsTooltip as l}from"./DQAlertsTooltip.js";import{useDQUnvalidatedContentStyles as n}from"../styles.js";import{isResolved as m}from"../utils.js";var c=function(c){var p,d=c.alert,f=c.alertsNum,u=c.alertState,h=c.isIssueData,N=c.linkToDQPage,v=n({}),j=m(d.status),g=j?i.Resolved:i[u];return e(l,{alert:d,alertIcon:e(g,{className:a(v[u],v.alertIcon)}),linkToDQPage:N,children:s("div",{className:a(v.errorContainer,r({},v.missingContainer,h&&u===o.missing)),children:[e(g,{className:a((p={},r(p,v[u],!j),r(p,v.Resolved,j),p),v.alertIcon)}),e("div",{children:!j&&s(t,{children:[s("span",{className:a(v[u],v.errorText),children:[u,": "]}),e("span",{className:v.errorNum,children:f})]})})]})})};export{c as DQAlertTooltip};
//# sourceMappingURL=DQAlertTooltip.js.map
