MCPcopy Create free account
hub / github.com/code100x/daily-code / ScrollToTopWrapper

Function ScrollToTopWrapper

apps/web/components/ScrollToTopWrapper.tsx:5–14  ·  view source on GitHub ↗
({ children }: { children: React.ReactNode })

Source from the content-addressed store, hash-verified

3import React from "react";
4import ScrollToTop from "react-scroll-to-top";
5const ScrollToTopWrapper = ({ children }: { children: React.ReactNode }) => {
6 const { resolvedTheme } = useTheme();
7
8 return (
9 <div>
10 <ScrollToTop smooth className={"flex justify-center items-center !rounded-full "} style={{ zIndex: 100 }} />
11 {children}
12 </div>
13 );
14};
15
16export default ScrollToTopWrapper;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected