File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,13 @@ export const CippExchangeInfoCard = (props) => {
29
29
{ name : "ActiveSync" , enabled : exchangeData ?. MailboxActiveSyncEnabled } ,
30
30
] ;
31
31
32
+ // Define mailbox hold types array
33
+ const holds = [
34
+ { name : "Compliance Tag Hold" , enabled : exchangeData ?. ComplianceTagHold } ,
35
+ { name : "Retention Hold" , enabled : exchangeData ?. RetentionHold } ,
36
+ { name : "Litigation Hold" , enabled : exchangeData ?. LitigationHold } ,
37
+ ] ;
38
+
32
39
return (
33
40
< Card { ...other } >
34
41
< CardHeader
@@ -175,6 +182,30 @@ export const CippExchangeInfoCard = (props) => {
175
182
)
176
183
}
177
184
/>
185
+ { /* Combine all mailbox hold types into a single PropertyListItem */ }
186
+ < PropertyListItem
187
+ divider
188
+ label = "Mailbox Holds"
189
+ value = {
190
+ isLoading ? (
191
+ < Skeleton variant = "text" width = { 200 } />
192
+ ) : (
193
+ < div >
194
+ { holds . map ( ( hold ) => (
195
+ < Chip
196
+ key = { hold . name }
197
+ label = { hold . name }
198
+ icon = { hold . enabled ? < CheckIcon /> : < CloseIcon /> }
199
+ color = { hold . enabled ? "success" : "default" }
200
+ variant = "outlined"
201
+ size = "small"
202
+ sx = { { mr : 1 , mb : 1 } }
203
+ />
204
+ ) ) }
205
+ </ div >
206
+ )
207
+ }
208
+ />
178
209
{ /* Combine protocols into a single PropertyListItem */ }
179
210
< PropertyListItem
180
211
divider
You can’t perform that action at this time.
0 commit comments