import { useInView } from "../hooks"; import type { ReactNode } from "react"; interface SectionShellProps { id: string; title: string; subtitle?: string; children: ReactNode; } export default function SectionShell({ id, title, subtitle, children }: SectionShellProps) { const [ref, inView] = useInView(); return (

{title}

{subtitle && (

{subtitle}

)}
{children}
); }