<template>
  <b-row class="justify-content-center">
    <b-col lg="5" sm="12" xs="12">
      <div class="information-list">
        <div class="information-item">
          <div class="icon">
            <i class="fa fa-info"></i>
          </div>
          <span>
            <strong>Version: </strong>
            {{config.version}}
          </span>
        </div>

        <div class="information-item">
          <div class="icon">
            <i class="fa fa-bluetooth"></i>
          </div>
          <span>
            <strong>Bluetooth support: </strong>
            <b-badge variant="success" v-if="config.hasBluetooth">Yes</b-badge>
            <b-badge variant="warning" v-else>No</b-badge>
          </span>
        </div>
      </div>
    </b-col>
  </b-row>
</template>

<script>
import { mapGetters, mapActions } from "vuex";

export default {
  name: "Information",

  computed: {
    ...mapGetters(["config"])
  }
};
</script>

<style scoped lang="scss">
@import "../styles/sass/variables";

.information-list {
  display: flex;
  flex-direction: column;

  .information-item {
    display: flex;
    align-items: center;
    border-radius: 5px;
    margin: 5px;
    border: 1px solid darken($white, 20);
    overflow: hidden;

    .icon {
      background: #343a40;
      padding: 5px;
      width: 40px;
      height: 40px;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-right: 10px;
      color: $smg;
    }

    span {
      font-size: 13px;
    }
  }
}
</style>