Files
nocodb/packages/nc-gui/components/nc/Icon/Workflow.vue
mertmit 69a29568c7 chore: sync
Signed-off-by: mertmit <mertmit99@gmail.com>
2026-01-10 00:21:02 +03:00

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>