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;
