mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 17:06:49 +00:00
15 lines
488 B
Vue
15 lines
488 B
Vue
<script lang="ts" setup>
|
|
import type { ScriptType } from 'nocodb-sdk'
|
|
|
|
const props = defineProps<{
|
|
script: ScriptType
|
|
}>()
|
|
const meta = computed(() => props.script.meta as Record<string, any> | undefined)
|
|
const icon = computed<string>(() => meta.value?.icon)
|
|
</script>
|
|
|
|
<template>
|
|
<LazyGeneralEmojiPicker v-if="icon" :data-testid="`nc-emoji-${icon}`" class="text-lg" size="small" :emoji="icon" readonly />
|
|
<component :is="iconMap.ncScript" v-else class="w-4 mx-0.75" />
|
|
</template>
|