(t0)
| 355 | onDone(): void; |
| 356 | }; |
| 357 | export function PrivacySettingsDialog(t0) { |
| 358 | const $ = _c(17); |
| 359 | const { |
| 360 | settings, |
| 361 | domainExcluded, |
| 362 | onDone |
| 363 | } = t0; |
| 364 | const [groveEnabled, setGroveEnabled] = useState(settings.grove_enabled); |
| 365 | let t1; |
| 366 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 367 | t1 = []; |
| 368 | $[0] = t1; |
| 369 | } else { |
| 370 | t1 = $[0]; |
| 371 | } |
| 372 | React.useEffect(_temp2, t1); |
| 373 | let t2; |
| 374 | if ($[1] !== domainExcluded || $[2] !== groveEnabled) { |
| 375 | t2 = async (input, key) => { |
| 376 | if (!domainExcluded && (key.tab || key.return || input === " ")) { |
| 377 | const newValue = !groveEnabled; |
| 378 | setGroveEnabled(newValue); |
| 379 | await updateGroveSettings(newValue); |
| 380 | } |
| 381 | }; |
| 382 | $[1] = domainExcluded; |
| 383 | $[2] = groveEnabled; |
| 384 | $[3] = t2; |
| 385 | } else { |
| 386 | t2 = $[3]; |
| 387 | } |
| 388 | useInput(t2); |
| 389 | let t3; |
| 390 | if ($[4] === Symbol.for("react.memo_cache_sentinel")) { |
| 391 | t3 = <Text color="error">false</Text>; |
| 392 | $[4] = t3; |
| 393 | } else { |
| 394 | t3 = $[4]; |
| 395 | } |
| 396 | let valueComponent = t3; |
| 397 | if (domainExcluded) { |
| 398 | let t4; |
| 399 | if ($[5] === Symbol.for("react.memo_cache_sentinel")) { |
| 400 | t4 = <Text color="error">false (for emails with your domain)</Text>; |
| 401 | $[5] = t4; |
| 402 | } else { |
| 403 | t4 = $[5]; |
| 404 | } |
| 405 | valueComponent = t4; |
| 406 | } else { |
| 407 | if (groveEnabled) { |
| 408 | let t4; |
| 409 | if ($[6] === Symbol.for("react.memo_cache_sentinel")) { |
| 410 | t4 = <Text color="success">true</Text>; |
| 411 | $[6] = t4; |
| 412 | } else { |
| 413 | t4 = $[6]; |
| 414 | } |
nothing calls this directly
no test coverage detected