mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
16 lines
332 B
Vue
16 lines
332 B
Vue
<template>
|
|
<img ref="emojiEl" class="inline-block emoji" :src="url" :alt="emoji" />
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import twemoji from "@discordapp/twemoji";
|
|
|
|
const props = defineProps<{
|
|
emoji: string;
|
|
}>();
|
|
|
|
const url = computed(() => {
|
|
return `/twemoji/${twemoji.convert.toCodePoint(props.emoji)}.svg`;
|
|
});
|
|
</script>
|