<template>
  <LayoutContainer>
    <v-row>
      <LayoutUISubTitle>
        Découvrez les avantages de la solution
      </LayoutUISubTitle>

      <LayoutUITitle>
        {{ title }}
      </LayoutUITitle>
    </v-row>

    <v-row>
      <v-col
        cols="12"
        md="4"
        offset-md="1"
        v-for="(benefit, index) in benefits"
        :key="index"
      >
        <CommonCardBenefit
          :benefit="benefit"
        />
      </v-col>
    </v-row>
  </LayoutContainer>
</template>

<script setup lang="ts">
import { Benefit } from "~/types/interface";

const props = defineProps({
  benefits: {
    type: Array as PropType<Array<Benefit>>,
    required: true
  },
  title: {
    type: String,
    required: false,
    default: "Des avantages concrets"
  }
})
</script>

<style scoped lang="scss">
.v-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}
</style>
