mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-29 19:06:39 +00:00
23 lines
509 B
Vue
23 lines
509 B
Vue
<script lang="ts" setup>
|
|
import { Icon as IcIcon } from '@iconify/vue'
|
|
import type { TableType } from 'nocodb-sdk'
|
|
|
|
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"
|
|
/>
|
|
|
|
<MdiEyeCircleOutline v-else-if="tableMeta?.type === 'view'" class="w-5" />
|
|
<MdiTableLarge v-else class="w-5" />
|
|
</template>
|
|
|
|
<style scoped></style>
|