<template>
  <div class="back-container">
    <router-link :to="path">
      <IconText icon="arrow-link-back" :color="arrowColor">
        <span :style="{ color: textColor }"> {{ textContent }}</span>
      </IconText>
    </router-link>
  </div>
</template>

<script>
import { IconText } from 'inside-collection/atoms'

export default {
  name: 'back-container',
  components: { IconText },
  props: {
    path: {
      type: String,
      default: ''
    },
    textContent: {
      type: String,
      default: 'Retour'
    },
    arrowColor: {
      type: String
    },
    textColor: {
      type: String
    }
  }
}
</script>

<style lang="scss">
.back-container {
  text-align: left;
}
</style>
