import EventCollector from '@lume/shared/eventCollector'; import { ArrowLeft, ArrowRight, Refresh } from 'iconoir-react'; let platformName = 'darwin'; if (typeof window !== 'undefined') { const { platform } = await import('@tauri-apps/api/os'); platformName = await platform(); } export default function AppHeader({ collector }: { collector: boolean }) { const goBack = () => { window.history.back(); }; const goForward = () => { window.history.forward(); }; const reload = () => { window.location.reload(); }; return (