mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 09:57:17 +00:00
22 lines
545 B
Vue
22 lines
545 B
Vue
<script lang="ts" setup>
|
|
import type { TableType } from 'nocodb-sdk'
|
|
|
|
const { meta: tableMeta } = defineProps<{
|
|
meta?: TableType
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<LazyGeneralEmojiPicker
|
|
v-if="tableMeta?.meta?.icon"
|
|
:data-testid="`nc-emoji-${tableMeta.meta?.icon}`"
|
|
class="text-lg"
|
|
size="small"
|
|
:emoji="tableMeta.meta?.icon"
|
|
readonly
|
|
/>
|
|
|
|
<component :is="iconMap.eye" v-else-if="tableMeta?.type === 'view'" class="w-4 mx-0.75" />
|
|
<component :is="iconMap.table" v-else class="w-4 mx-0.5 text-gray-600/80" />
|
|
</template>
|