import { MainWindow } from './windows/MainWindow';
import { UnpackLogsWindow, isUnpackLogsView } from './UnpackLogsWindow';

/**
 * Tauri can spawn this bundle in either the main launcher window or the
 * unpack-logs companion window. The URL query string disambiguates the two so
 * a single Vite build serves both.
 */
const App = () => (isUnpackLogsView() ? <UnpackLogsWindow /> : <MainWindow />);

export default App;
