import{jsx as e,Fragment as r}from"react/jsx-runtime";import{useCallback as t}from"react";import o from"classnames";import{Chip as i}from"../../Chip/Chip.js";import"../../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import{UniversalLink as n}from"../../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router-dom";import"query-string";import{TextMiddleTruncated as s}from"../../TextMiddleTruncated/TextMiddleTruncated.js";import"../../TextMiddleTruncated/TextMiddleTruncated.constants.js";import{useAssetLabels as m,AssetLabelEntityToTestId as p}from"./utils.js";import l from"./AppAssets.scss.js";import{MIXPANEL_ACTION_TYPES as a}from"../../../constants/mixpanel.js";var c=function(c){var d=c.forceNarrow,u=m(),f=t((function(){var e,r;null===(e=(r=window)[Symbol.for("logToMixpanel")])||void 0===e||e.call(r,a.REDIRECT.ASSET_DASHBOARD,{referer:"Asset Chip"})}),[]);return e(r,{children:u.map((function(r,t,m){var a=r.className,c=r.prefix,u=r.link,h=r.title,C=r.entity,v=e(i,{prefix:c,size:"small",className:o(l.chip,1===m.length&&l.onlyChip,d&&l.narrowChip,a),onClick:u?f:void 0,children:e(s,{testId:p[C],children:h})},t);return u?e(n,{href:u,className:l.chipWrapper,children:v},t):v}))})};export{c as AppAssets};
//# sourceMappingURL=AppAssets.js.map
