<template>
  <el-menu-item :index="name" :key="name">
    <i :class="'iconfont ' + meta.icon" v-if="meta.icon"></i>
    <span>{{ meta.title }}</span>
  </el-menu-item>
</template>

<script lang="ts" setup>
import { RouteMeta } from "@/router";

defineProps<{ meta: RouteMeta; name: string }>();
</script>
