MCPcopy Create free account
hub / github.com/aiprodcoder/MIXAPI / switch

Function switch

web/src/components/table/ChannelsTable.js:152–177  ·  view source on GitHub ↗
(status)

Source from the content-addressed store, hash-verified

150
151 const renderMultiKeyStatus = (status, keySize, enabledKeySize) => {
152 switch (status) {
153 case 1:
154 return (
155 <Tag color='green' shape='circle'>
156 {t('已启用')} {enabledKeySize}/{keySize}
157 </Tag>
158 );
159 case 2:
160 return (
161 <Tag color='red' shape='circle'>
162 {t('已禁用')} {enabledKeySize}/{keySize}
163 </Tag>
164 );
165 case 3:
166 return (
167 <Tag color='yellow' shape='circle'>
168 {t('自动禁用')} {enabledKeySize}/{keySize}
169 </Tag>
170 );
171 default:
172 return (
173 <Tag color='grey' shape='circle'>
174 {t('未知状态')} {enabledKeySize}/{keySize}
175 </Tag>
176 );
177 }
178 }
179
180

Callers

nothing calls this directly

Calls 1

tFunction · 0.70

Tested by

no test coverage detected