import { useState, useRef, useEffect, type ReactElement } from "react"; interface StreamInfo { id: string; label: string; } const streams: StreamInfo[] = [ { id: "aramstream", label: "Aram" }, { id: "generalstream", label: "General" }, { id: "gueststream", label: "Guest" }, ]; export default function Stream(): ReactElement { const [activeStream, setActiveStream] = useState("aramstream"); const headerRef = useRef(null); useEffect(() => { headerRef.current?.scrollIntoView({ behavior: "smooth", block: "start", }); }, []); return (

Stream

{streams.map((s) => ( ))}