mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 11:47:01 +00:00
27 lines
760 B
Vue
27 lines
760 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="nc-table-icon text-lg"
|
|
size="small"
|
|
:emoji="tableMeta.meta?.icon"
|
|
readonly
|
|
/>
|
|
|
|
<component
|
|
:is="iconMap.ncZap"
|
|
v-else-if="tableMeta?.synced"
|
|
class="nc-table-icon w-4 mx-0.5 text-sm text-nc-gray-600/75 flex-none"
|
|
/>
|
|
<component :is="iconMap.eye" v-else-if="tableMeta?.type === 'view'" class="nc-table-icon w-4 mx-0.75 flex-none" />
|
|
<component :is="iconMap.table" v-else class="nc-table-iconw-4 mx-0.5 text-nc-gray-600/80 flex-none" />
|
|
</template>
|