<!--
  @description 侧边栏菜单项组件，递归渲染图标与标题
  @author D吕贺034244311
  @date 20260616
-->
<template>
  <svg-icon v-if="icon" :icon-class="icon" />
  <span v-if="title">{{ title }}</span>
</template>

<script>
export default {
  name: 'MenuItem',
  props: {
    icon: {
      type: String,
      default: ''
    },
    title: {
      type: String,
      default: ''
    }
  }
}
</script>
