<script setup lang="ts">
import { ArrowRightBold } from "@element-plus/icons-vue";
const props = withDefaults(
  defineProps<{
    showArrow?: boolean;
  }>(),
  { showArrow: false }
);
</script>
<template>
  <h2>
    <slot></slot>
    <el-icon v-if="props.showArrow" class="suffix"><ArrowRightBold /></el-icon>
  </h2>
</template>
<style lang="scss" scoped>
h2 {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  .suffix {
    width: 24px;
    height: 24px;
    color: #00000042;
  }
}
</style>
