<template>
	<div class="content">
		<h1>Import your data from other services to Vikunja</h1>
		<p>Click on the logo of one of the third-party services below to get started.</p>
		<div class="migration-services-overview">
			<router-link :to="{name: 'migrate', params: {service: m}}" v-for="m in availableMigrators" :key="m">
				<img :src="`/images/migration/${m}.png`" :alt="m"/>
				{{ m }}
			</router-link>
		</div>
	</div>
</template>

<script>
	export default {
		name: 'migrate',
		computed: {
			availableMigrators() {
				return this.$store.state.config.availableMigrators
			},
		},
	}
</script>
