<template>
  <div class="collapse-item">
    <div class="collapse-item__header">
      <div class="collapse-item__header--left">
        <span style="font-weight: 550">{{ name }}</span>
        <slot name="view-operation" />
      </div>
    </div>
  </div>
</template>

<script lang="ts" setup>

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

<style lang="scss" scoped>
  .collapse-item {
    width: 100%;
    background: #f2f8ff;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 8px;
    &__header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      font-size: 20px;
      color: rgba($text-color, 0.85);
      &--left {
        @include flex-center;
        gap: 20px;
      }
    }
  }
</style>
