| 20 | const [displaySettings, setDisplaySettings] = createSignal<boolean>(false) |
| 21 | |
| 22 | const handleExport = (format: 'json' | 'csv') => { |
| 23 | if (allyResult.audit) return |
| 24 | // Keep export logic in runtime via event -> overlay? export is still a direct helper. |
| 25 | // We keep this import local to avoid pulling export code into the runtime module. |
| 26 | |
| 27 | void import('../utils/export-audit.uitls').then((m) => |
| 28 | m.exportAuditResults(allyResult.audit!, { format }), |
| 29 | ) |
| 30 | } |
| 31 | |
| 32 | const showOverlayState = createMemo(() => config.showOverlays) |
| 33 | |