<script setup lang="ts">
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
const props = defineProps({
  title: {
    type: Number,
    default: 0
  }
})
</script>
<template>
  <view class="box">
    <image src="/static/nodata.png" class="img" />
    <view v-if="!props.title" class="title">{{ t('common.nodata') }}</view>
    <view v-else class="title">{{ props.title }}</view>
  </view>
</template>
<style lang="scss" scoped>
.box {
  margin: 5.9063rem auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .img {
    width: 6.875rem;
    height: 3.1875rem;
  }
  .title {
    color: #75b9fe;
    font-size: 0.75rem;
    margin-top: 1.25rem;
  }
}
</style>
