import*as t from"react";import{Flex as c}from"@redocly/portal-legacy-ui";import{useTranslate as s}from"../../../../../client/app/hooks";import p from"./OverviewRow";import l from"./StatusBadge";const m=t.createElement(n,{type:"success",translationKey:"dev.app.overview.production",text:"Production"}),u=t.createElement(n,{type:"primary",translationKey:"dev.app.overview.non-production",text:"Non-Production"});function d(o){const{stage:e}=o;return t.createElement(p,{title:"Stage",content:e==="production"?m:u})}function n(o){const{translationKey:e,type:r,text:a}=o,{translate:i}=s();return t.createElement(c,{alignItems:"baseline",style:{whiteSpace:"nowrap"},"data-translation-key":e},t.createElement(l,{type:r,size:"big"},i(e,a)))}export{d as default};
