<script>
import Prompt from '!!raw-loader!./prompt.md'
import Vue from 'vue'
export default Vue.extend({
  name: 'InitSelect',
  props: [
    'tool_name',
    'tool_input',
    'tool_data'
  ],
  data() {
    return {
      type: 'comp',
      prompt: Prompt
    }
  }
})
</script>

<template>
  <div class="init-select">
    <div v-for="item in tool_data" class="button" @click="$emit('sentAi',{...item})">{{ item.label }}</div>
  </div>
</template>

<style scoped lang="scss">
.init-select{
  max-height: 600px;
  overflow: hidden;
  .button{
    width: 100%;
    background: #c0d7f6;
    padding: 8px 16px;
    border-radius: 64px;
    color: #2b2677;
    font-size: 16px;
    transition-duration: 300ms;
    cursor: pointer;
    &:hover{
      background: #b4cbec;
    }
    &:not(:last-child){
      margin-bottom: 6px;
    }
  }
}
</style>
