<template>
  <div class="elem-composition">
    <div class="elem-title" v-if="data.topicName">
      {{ data.topicName }}
    </div>
    <div class="elem-body">
      <div class="elem-composition-elements">
        <composition-element
          v-for="element in data.elements"
          :key="element.id"
          :data="element"
        ></composition-element>
      </div>
      <div class="elem-composition-lines">
        <ul>
          <li v-for="line in data.lineCount" :key="line"></li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script>
import CompositionElement from "./CompositionElement";

export default {
  name: "elem-composition",
  components: { CompositionElement },
  props: {
    data: {
      type: Object
    }
  },
  data() {
    return {};
  }
};
</script>
