(obj)
| 323 | } |
| 324 | |
| 325 | const ifPermissionContainsTrue = (obj) => { |
| 326 | for (const key in obj) { |
| 327 | if (typeof obj[key] === 'object' && obj[key] !== null) { |
| 328 | // Recursively check nested objects |
| 329 | if (ifPermissionContainsTrue(obj[key])) { |
| 330 | return true |
| 331 | } |
| 332 | } else if (obj[key] === true) { |
| 333 | return true |
| 334 | } |
| 335 | } |
| 336 | return false |
| 337 | } |
| 338 | |
| 339 | const component = show ? ( |
| 340 | <Dialog |