<template>
  <nut-drag direction="y" attract :style="[props.bottom ? {bottom:props.bottom} : {top:props.top}]" class="rounded-full bg-[#fff] border-solid border-black border-[3rpx] left-[30rpx]" style="z-index: 999 !important;">
    <ChevronLeft class="w-[88rpx] h-[88rpx] text-black" :stroke-width="2" @click="goBack"/>
  </nut-drag>
</template>

<script lang="ts" setup>
import { ChevronLeft } from 'lucide-vue-next';
import { useRouter } from 'vue-router';

const props = defineProps({
  bottom:{
    type:String,
    default:""
  },
  top:{
    type:String,
    default:"8vh"
  }
})

const router = useRouter()

const goBack = () => {
  router.back();
}
</script>
