import { AppType } from "../lib/tauri-api"; import "./AppSwitcher.css"; interface AppSwitcherProps { activeApp: AppType; onSwitch: (app: AppType) => void; } export function AppSwitcher({ activeApp, onSwitch }: AppSwitcherProps) { const handleSwitch = (app: AppType) => { if (app === activeApp) return; onSwitch(app); }; return (
); }