"use client" import * as React from "react" import { Bubble, BubbleContent } from "@/styles/base-rhea/ui/bubble" import { Button } from "@/styles/base-rhea/ui/button" import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, } from "@/styles/base-rhea/ui/card" import { Message, MessageContent } from "@/styles/base-rhea/ui/message" import { MessageScroller, MessageScrollerButton, MessageScrollerContent, MessageScrollerItem, MessageScrollerProvider, MessageScrollerViewport, useMessageScroller, } from "@/styles/base-rhea/ui/message-scroller" import { Tabs, TabsList, TabsTrigger } from "@/styles/base-rhea/ui/tabs" const messages = [ { id: "open-1", role: "user", text: "This is the first message the user sent in the conversation.", }, { id: "open-2", role: "assistant", text: "Workspace creation rose 8%, but first invite completion only rose 2%.", }, { id: "open-3", role: "user", text: "This is the last message the user sent in the conversation.", }, { id: "open-4", role: "assistant", text: "Start with the invite step. Teams are creating workspaces but waiting to add collaborators.\n\nRecommended follow-up:\n\n1. Compare invite drop-off by account size.\n2. Check whether users who skip invites still return within 24 hours.\n3. Review the empty-state copy on the first project screen.\n4. Segment activation by template, since template users may not need invites right away.\n\nIf that pattern holds, the next experiment should make collaboration useful earlier instead of prompting for invites harder.", }, ] satisfies Array<{ id: string role: "user" | "assistant" text: string }> const positions = [ { value: "start", label: "start" }, { value: "end", label: "end" }, { value: "last-anchor", label: "last-anchor" }, ] satisfies Array<{ value: "start" | "end" | "last-anchor" label: string }> export function MessageScrollerOpeningPosition() { const [positionKey, setPositionKey] = React.useState(0) const [position, setPosition] = React.useState< "start" | "end" | "last-anchor" >("last-anchor") return (
{paragraph}
))}