"use client"; import { useEffect, useRef, useState } from "react"; import MessageList from "./MessageList"; import Composer from "./Composer"; type ActivityStage = "idle" | "parsing" | "thinking"; function ExpertActivity({ stage }: { stage: ActivityStage }) { if (stage === "idle") return null; const isParsing = stage === "parsing"; return (