(resourceId: string)
| 15 | }; |
| 16 | |
| 17 | export const extractRoleResourceName = (resourceId: string): string => { |
| 18 | const pattern = /(?:^|\/)roles\/([^/]+)(?:$|\/)/; |
| 19 | const matches = resourceId.match(pattern); |
| 20 | return matches?.[1] ?? ""; |
| 21 | }; |
| 22 | |
| 23 | export const displayRoleTitle = (role: string): string => { |
| 24 | switch (role) { |
no outgoing calls
no test coverage detected