<template>
  <div>
    <heading
      :ts="formBody.sharedStyle.heading"
      :ls="widget.style.heading"
      :d="widget.style.heading.defaultStyle"
      >{{ widget.text.heading }}
    </heading>
    <heading
      :ts="formBody.sharedStyle.subHeading"
      :ls="widget.style.subHeading"
      :d="widget.style.subHeading.defaultStyle"
      >{{ widget.text.subHeading }}
    </heading>

    <v-container class="pa-6">
      <v-row>
        <v-slider
          v-model="slider"
          :tick-labels="ticksLabels"
          step="10"
          ticks="always"
          tick-size="4"
          color="grey"
          track-color="grey"
          :thumb-color="
            widget.style.heading.defaultStyle
              ? formBody.sharedStyle.heading.textColor
              : widget.style.heading.textColor
          "
        >
        </v-slider>
      </v-row>
    </v-container>
  </div>
</template>

<script>
import Heading from "@/components/widgets/components/heading";
export default {
  name: "NumberSliderWidget",
  components: { Heading },
  props: {
    widget: Object,
    formBody: Object,
  },
  data() {
    return {
      satisfactionEmojis: [
        "😭",
        "😢",
        "☹️",
        "🙁",
        "😐",
        "🙂",
        "😊",
        "😁",
        "😄",
        "😍",
      ],
      ticksLabels: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
      slider: 45,
    };
  },
};
</script>
