<script lang="ts">
  import {GetModpacks} from '../wailsjs/go/main/App.js'
	import {onMount} from 'svelte'

  let modpacks: string[] = []

  onMount(() => {
		console.log("mounted")
		GetModpacks().then((result) => {
				modpacks = result
		})
  })
</script>

<main>
  <select name="pack">Select a Modpack: 
		{#each modpacks as pack}
				<option value={pack}>{pack}</option>
		{/each}
  </select>
</main>

<style>
</style>
