import { useState } from "react"; const defaultPath = "C:/Projects/Roblox"; // change as needed export default function Overlay() { const [dir, setDir] = useState(defaultPath); const [status, setStatus] = useState<"idle" | "watching">("idle"); const start = async () => { try { await (window as any)?.aeBridge?.startWatcher(dir); setStatus("watching"); } catch (e) { console.error(e); } }; const stop = async () => { try { await (window as any)?.aeBridge?.stopWatcher(); setStatus("idle"); } catch (e) { console.error(e); } }; return (
AeThex Overlay — On-Top Sidecar
File Watcher
setDir(e.target.value)} style={{ width: "100%", padding: 10, borderRadius: 8, border: "1px solid #1f2937", background: "#0f172a", color: "#e5e7eb", marginBottom: 10, }} />
Status: {status}
PII is scrubbed locally before any processing.
); }