mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
544 B
21 lines
544 B
<script lang="ts" setup> |
|
import { Icon as IcIcon } from '@iconify/vue' |
|
import type { TableType } from 'nocodb-sdk' |
|
import { iconMap } from '#imports' |
|
|
|
const { meta: tableMeta } = defineProps<{ |
|
meta: TableType |
|
}>() |
|
</script> |
|
|
|
<template> |
|
<IcIcon |
|
v-if="tableMeta.meta?.icon" |
|
:data-testid="`nc-icon-${tableMeta.meta?.icon}`" |
|
class="text-lg" |
|
:icon="tableMeta.meta?.icon" |
|
/> |
|
|
|
<component :is="iconMap.eye" v-else-if="tableMeta?.type === 'view'" class="w-5" /> |
|
<component :is="iconMap.table" v-else class="w-5" /> |
|
</template>
|
|
|