This commit is contained in:
quantulr
2023-11-02 17:24:34 +08:00
parent 593a8a0bc3
commit 2423f8c2e8
8 changed files with 86 additions and 9 deletions

View File

@ -0,0 +1,19 @@
"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;