mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 10:56:36 +00:00
15 lines
500 B
Vue
15 lines
500 B
Vue
<script lang="ts" setup>
|
|
import type { WorkflowType } from 'nocodb-sdk'
|
|
|
|
const props = defineProps<{
|
|
workflow: WorkflowType
|
|
}>()
|
|
const meta = computed(() => props.workflow.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.ncAutomation" v-else class="w-4 mx-0.75" />
|
|
</template>
|