<script>
import { emit, listen } from '@tauri-apps/api/event';
import Home from './views/Home.svelte';
import Approve from './views/Approve.svelte';

let activeComponent = Home;

listen('credentials-request', (event) => {
    activeComponent = Approve;
})
</script>

<svelte:component this={activeComponent} />
