Files
lanspread/crates/lanspread-tauri-deno-ts/src/App.tsx
T
2026-06-07 16:17:31 +02:00

17 lines
564 B
TypeScript

import { MainWindow } from './windows/MainWindow';
import { MainLogsWindow, isMainLogsView } from './MainLogsWindow';
import { UnpackLogsWindow, isUnpackLogsView } from './UnpackLogsWindow';
/**
* Tauri can spawn this bundle in either the main launcher window or the
* companion log windows. The URL query string disambiguates the views so
* a single Vite build serves both.
*/
const App = () => {
if (isMainLogsView()) return <MainLogsWindow />;
if (isUnpackLogsView()) return <UnpackLogsWindow />;
return <MainWindow />;
};
export default App;