<template>
  <div class="add-user">
    <CardTitle :data="data" />
    <div class="content" v-html="contentText"></div>
    <CardFooter :data="data" />
  </div>
</template>

<script>
import CardTitle from "@RecordCard/components/Common/CardTitle/index.vue";
import CardFooter from "@RecordCard/components/Common/CardFooter/index.vue";
export default {
  name: "AddUser",
  components: { CardFooter, CardTitle },
  props: {
    data: {
      type: Object,
      default: () => {
        return {};
      },
    },
  },
  computed: {
    contentText() {
      const { materials = [] } = this.data;
      return materials.length > 0 ? materials[0].material_name : "";
    },
  },
};
</script>

<style lang="scss" scoped>
.add-user {
  width: 100%;
  .content {
    @include cardContent(false);
  }
}
</style>
