<script setup lang="ts">
import type { IconfontIcon } from '@/icons/fonts/iconfont';

interface Props {
  title: string;
  icon?: IconfontIcon;
}

defineProps<Props>();
</script>

<template>
  <SvgIcon v-if="icon" :name="icon" class="aside-item-icon" />
  <span class="aside-item-title">{{ title }}</span>
</template>

<style lang="scss" scoped>
.aside-item-icon {
  margin-right: 9px;
  font-size: 20px;
  font-weight: 600;
}

.aside-item-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
}
</style>
