import React, { useEffect, useState } from 'react'; export const DebugLogView = () => { const [content, setContent] = useState(window.i18n('loading')); useEffect(() => { const operatingSystemInfo = `Operating System: ${(window as any).getOSRelease()}`; const commitHashInfo = (window as any).getCommitHash() ? `Commit Hash: ${(window as any).getCommitHash()}` : ''; // eslint-disable-next-line more/no-then window.log.fetch().then((text: string) => { const debugLogWithSystemInfo = operatingSystemInfo + commitHashInfo + text; setContent(debugLogWithSystemInfo); }); }, []); return (