"use client" import clsx from "clsx" import { useEffect, useRef } from "react" export type SectionProps = { addToSidebar?: boolean } & React.AllHTMLAttributes const Section = ({ children, className }: SectionProps) => { const sectionRef = useRef(null) useEffect(() => { if ("scrollRestoration" in history) { // disable scroll on refresh history.scrollRestoration = "manual" } }, []) return (
{children}
) } export default Section