()
| 7 | import { createDialogStyles } from './components/Dialog.css'; |
| 8 | |
| 9 | function getUser(): User | undefined { |
| 10 | const currentUser = getCurrentScope().getUser(); |
| 11 | const isolationUser = getIsolationScope().getUser(); |
| 12 | const globalUser = getGlobalScope().getUser(); |
| 13 | if (currentUser && Object.keys(currentUser).length) { |
| 14 | return currentUser; |
| 15 | } |
| 16 | if (isolationUser && Object.keys(isolationUser).length) { |
| 17 | return isolationUser; |
| 18 | } |
| 19 | return globalUser; |
| 20 | } |
| 21 | |
| 22 | export const feedbackModalIntegration = ((): FeedbackModalIntegration => { |
| 23 | return { |
no test coverage detected