(input: { permission?: PermissionRequest; question?: QuestionRequest })
| 217 | } |
| 218 | |
| 219 | export function pickBlockerView(input: { permission?: PermissionRequest; question?: QuestionRequest }): FooterView { |
| 220 | if (input.permission) { |
| 221 | return { type: "permission", request: input.permission } |
| 222 | } |
| 223 | |
| 224 | if (input.question) { |
| 225 | return { type: "question", request: input.question } |
| 226 | } |
| 227 | |
| 228 | return { type: "prompt" } |
| 229 | } |
| 230 | |
| 231 | export function blockerStatus(view: FooterView) { |
| 232 | if (view.type === "permission") { |
no outgoing calls
no test coverage detected