"use client";
import backTop from "@/app/assets/backtop.png";
import Image from "next/image";
// import { useScroll } from "ahooks";

const BackToTop = () => {
  // const position = useScroll();
  return (
    <div className={`fixed bottom-4 right-10 w-[50px] h-[50px]`}>
      <Image
        className={"w-full h-full cursor-pointer"}
        src={backTop}
        alt={""}
      />
    </div>
  );
};

export default BackToTop;
