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

// listen('credentials-request', (event) => {
//     const passphrase = prompt('Please enter your passphrase:');
//     emit('passphrase-entered', passphrase);
// });

let activeComponent = Approve;
</script>

<svelte:component this={activeComponent} />
