<script lang="ts" setup>
import { useRouter } from '../core/utils/router'

defineProps({
  transparent: {
    type: Boolean,
    default: false,
  },
})
const router = useRouter()
</script>
<template>
  <wd-config-provider>
    <wd-navbar
      fixed
      left-arrow
      safe-area-inset-top
      :bordered="false"
      :custom-class="`${transparent ? 'bg-transparent!' : ''}`"
      @click-left="router.back()"
    ></wd-navbar>
  </wd-config-provider>
</template>
