import*as t from"react";import{Flex as o}from"@redocly/portal-legacy-ui";import{useTranslate as n}from"../../../../../client/app/hooks";import p from"./OverviewRow";import v from"./StatusBadge";const i=a=>{const{translate:e}=n();switch(a){case"pending":return t.createElement(s,{type:"primary","data-translation-key":"dev.app.overview.status.pending",text:e("dev.app.overview.status.pending","Pending")});case"approved":return t.createElement(s,{type:"success","data-translation-key":"dev.app.overview.status.approved",text:e("dev.app.overview.status.approved","Approved")});case"revoked":return t.createElement(s,{type:"danger","data-translation-key":"dev.app.overview.status.revoked",text:e("dev.app.overview.status.revoked","Revoked")})}};function d(a){const{status:e}=a,{translate:r}=n();return t.createElement(p,{"data-translation-key":"dev.app.overview.status",title:r("dev.app.overview.status","Status"),content:i(e)})}function s(a){const{text:e,type:r}=a;return t.createElement(o,{alignItems:"baseline",style:{whiteSpace:"nowrap"}},t.createElement(v,{type:r,size:"big"},e))}export{d as default,i as useKeyStatus};
