<template>
  <div class="breadcrumb-wrapper">
    <icon-button
      @click="props.go ? $router.push(go!) : $router.go(-1)"
      icon="arrow"
      classList="breadcrumbs-back breadcrumb-link" />
    <div class="breadcrumbs-list">
      <icon-button toRoute="/" icon="dashboard" classList="breadcrumbs-dashboard" />
      <span>{{ currentPageText }}</span>
    </div>
  </div>
</template>
<script setup lang="ts">
  const props = defineProps<{
    currentPageText: string
    go?: string
  }>()
</script>
