import*as n from"react";const a="Other",u="Non-conformant",l={Error:"--scorecard-color-error",Warn:"--scorecard-color-warning",Pass:"--scorecard-color-success"};function f(r){return n.useMemo(()=>new URLSearchParams(r.search),[r.search])}function p(r){switch(r){case"error":return"\u274C";case"warn":return"\u26A0\uFE0F";default:return"\u2139\uFE0F"}}function i(r){switch(r){case"error":return"red";case"warn":return"orange";default:return"blue"}}function m(r,s){const e=[];let o=!1;for(const c of Object.values(r.levels)){for(const t of c.problems)t.ruleId===s&&(o=!0,e.push(t));if(o)break}return e}export{u as NON_CONFORMANT,a as OTHER_TEAMS_LABEL,l as SEVERITY_TO_COLOR,m as getProblemsByRule,i as severityColor,p as severityIcon,f as useSearchParams};
