"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),r=require("react/jsx-runtime"),s=require("classnames"),t=require("../constants.js"),a=require("./DQAlertsTooltip.js"),l=require("../styles.js"),i=require("../utils.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=n(e),o=n(s);exports.DQAlertTooltip=function(e){var s,n=e.alert,d=e.alertsNum,c=e.alertState,j=e.isIssueData,f=e.linkToDQPage,m=l.useDQUnvalidatedContentStyles({}),x=i.isResolved(n.status),p=x?t.ALERT_ICONS.Resolved:t.ALERT_ICONS[c];return r.jsx(a.DQAlertsTooltip,{alert:n,alertIcon:r.jsx(p,{className:o.default(m[c],m.alertIcon)}),linkToDQPage:f,children:r.jsxs("div",{className:o.default(m.errorContainer,u.default({},m.missingContainer,j&&c===t.ALERT_STATES.missing)),children:[r.jsx(p,{className:o.default((s={},u.default(s,m[c],!x),u.default(s,m.Resolved,x),s),m.alertIcon)}),r.jsx("div",{children:!x&&r.jsxs(r.Fragment,{children:[r.jsxs("span",{className:o.default(m[c],m.errorText),children:[c,": "]}),r.jsx("span",{className:m.errorNum,children:d})]})})]})})};
//# sourceMappingURL=DQAlertTooltip.js.map
