2022-11-24 00:05:56 +01:00
|
|
|
<template>
|
|
|
|
<div class="flex gap-1 justify-center items-center">
|
2024-01-29 01:37:28 +01:00
|
|
|
<ui-sprite v-if="member.is_leader" class="flex-none" :class="[ageColors.leiter, iconClass]" src="lilie"></ui-sprite>
|
|
|
|
<ui-sprite v-if="member.age_group_icon" class="flex-none" :class="[ageColors[member.age_group_icon], iconClass]" src="lilie"></ui-sprite>
|
2022-11-24 00:05:56 +01:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2024-01-29 01:37:28 +01:00
|
|
|
<script setup>
|
|
|
|
import useAgeColors from '../../composables/useAgeColors.js';
|
|
|
|
|
|
|
|
const {ageColors} = useAgeColors();
|
|
|
|
|
|
|
|
defineProps({
|
|
|
|
iconClass: {
|
|
|
|
default: 'w-3 h-3',
|
2022-11-24 00:05:56 +01:00
|
|
|
},
|
2024-01-29 01:37:28 +01:00
|
|
|
member: {
|
|
|
|
required: true,
|
2022-11-24 00:05:56 +01:00
|
|
|
},
|
2024-01-29 01:37:28 +01:00
|
|
|
});
|
2022-11-24 00:05:56 +01:00
|
|
|
</script>
|