<template>
  <div>
    <q-img loading="eager" :src="imgSrc" />
    <q-card-section>
      <div class="text-page-title">
        {{ title }}
      </div>
    </q-card-section>
    <q-card-section>
      <slot name="description">
        <div>{{ description }}</div>
      </slot>
    </q-card-section>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true,
      default: "",
    },
    description: {
      type: String,
      default: null,
    },
    imgSrc: {
      type: String,
      default: null,
    },
  },
};
</script>
