Files
nocodb/packages/nc-gui/components/general/TableIcon.vue
Pranav C e790abdbaf refactor: rename project and base
- Rename `Project`  => `Base`
- Rename `Base` => `Source`
- Remove `db` from data/meta api endpoints
- Add backward compatibility for old apis
- Migrations for renaming table and columns

Signed-off-by: Pranav C <pranavxc@gmail.com>
2023-10-02 23:52:18 +05:30

23 lines
561 B
Vue

<script lang="ts" setup>
import type { TableType } from 'nocodb-sdk'
import { iconMap } from '#imports'
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-5 mx-0.75" />
<component :is="iconMap.table" v-else class="w-5 mx-0.5" />
</template>