/
home
/
sjslayjy
/
public_html
/
theweavenest
/
vendor
/
spatie
/
ignition
/
resources
/
js
/
components
/
Upload File
HOME
import React from 'react'; import useSectionInView from '../hooks/useSectionInView'; type Props = { children: React.ReactNode; className?: string; name: string; }; export default function Section({ children, className = '', name }: Props) { const ref = useSectionInView(name); return ( <section ref={ref} className={className}> <a id={name} className="scroll-target" /> {children} </section> ); }