<template>
<div>
<div class="mb-6 bg-white p-4 border border-grey rounded">
<div class="flex flex-col h-full justify-between">
<div class="flex justify-between mb-12">
<router-link :to="{name: 'environments', params: {id: id}}" class="text-blue-dark no-underline hover:underline focus:underline"><h2 class="mb-1">{{ application.name }}</h2></router-link>
</div>
<a href="#0" class="text-blue-dark no-underline hover:underline focus:underline">{{ application.environments['prod'].url }}</a>
<button type="button" @click="starred = !starred" class="focus:outline-none">
<svg class="h-6 w-6 text-orange fill-current" role="presentation"><use :xlink:href="`/img/icons.symbol.svg#state__${starred ? 'starred' : 'unstarred'}`"></use></svg>
</button>
<application-tags :type="application.type" :level="application.level"></application-tags>
</template>
<script>
import ApplicationTags from '@/components/ApplicationTags'
export default {
components: {
ApplicationTags,
},
props: {
application: Object,
id: Number,
data() {
return {
starred: false,
}
</script>