2022-11-24 00:05:56 +01:00
|
|
|
<template>
|
|
|
|
<div class="flex gap-1 justify-center items-center">
|
2023-06-14 17:10:50 +02:00
|
|
|
<svg-sprite class="flex-none" v-if="member.is_leader" :class="[ageColors.leiter, iconClass]" src="lilie"></svg-sprite>
|
|
|
|
<svg-sprite class="flex-none" v-if="member.age_group_icon" :class="[ageColors[member.age_group_icon], iconClass]" src="lilie"></svg-sprite>
|
2022-11-24 00:05:56 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data: function () {
|
|
|
|
return {
|
|
|
|
ageColors: {
|
|
|
|
biber: 'text-biber',
|
|
|
|
woelfling: 'text-woelfling',
|
|
|
|
jungpfadfinder: 'text-jungpfadfinder',
|
|
|
|
pfadfinder: 'text-pfadfinder',
|
|
|
|
rover: 'text-rover',
|
|
|
|
leiter: 'text-leiter',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
props: {
|
2022-11-24 00:59:40 +01:00
|
|
|
iconClass: {
|
|
|
|
default: 'w-3 h-3',
|
|
|
|
},
|
2022-11-24 00:05:56 +01:00
|
|
|
member: {
|
|
|
|
required: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|