<template>
  <div class="node-head">
    <div class="node-title">{{ nodeName }}</div>
    <slot></slot>
  </div>
</template>

<script setup lang="ts">
  defineProps(['nodeName']);
</script>

<style scoped lang="less">
  .node-head {
    display: flex;
    align-items: center;
    line-height: 23px;

    &::before {
      width: 4px;
      height: 16px;
      background: @primary-color;
      border-radius: 2px;
      content: '';
    }
  }

  .node-title {
    font-size: 14px;
    color: @primary-color;
    font-weight: bold;
    padding-left: 8px;
  }
</style>
