<template>
  <router-link v-if="to" :to="to" tag="button">
    <slot/>
  </router-link>
  <button v-else>
    <slot/>
  </button>
</template>

<script>
export default {
  props: {
    to: String,
  }
}
</script>

<style scoped>
button {
  cursor: pointer;
  background-color: white;
  border: 2px solid #8c195f;
  border-radius: 18px;
  padding: 7px 35px 5px;
  font-weight: 700;
  display: inline-block;
  color: #8c195f;
  font-size: 13px;
}
</style>
