import { Focusable } from "decky-frontend-lib"; import { VFC, useEffect, useState } from "react"; import { ScrollableWindowRelative } from "./ScrollableWindow"; interface LogFileProps { plugin: string; name: string; closeModal?: () => void; } const LogViewModal: VFC = ({ name, plugin, closeModal }) => { const [logText, setLogText] = useState("Loading text...."); useEffect(() => { window.DeckyPluginLoader.callServerMethod("get_plugin_log_text", { plugin_name: plugin, log_name: name, }).then((text) => { setLogText(text.result || "Error loading text"); }); }, []); return ( console.log("Uploading...")} >
{logText}
); }; export default LogViewModal;