/** * The new-chat composer's note that this chat starts as a bot from a * template: who it will be, and a way back to an ordinary chat. */ import { XIcon } from "lucide-react"; import type { WorkspaceBotTemplate } from "@opengeni/contracts"; import { Button } from "../../../ui/button"; import { Skeleton } from "../../../ui/skeleton"; import { SessionAvatar, sessionAvatarFallbackHue, sessionAvatarInitials, } from "../session/session-avatar"; export type BotLaunchState = | { kind: "loading" } | { kind: "ready"; template: WorkspaceBotTemplate } | { kind: "error"; message: string }; export function BotLaunchStrip({ state, workspaceId, onDismiss, }: { state: BotLaunchState; workspaceId: string; onDismiss: () => void; }) { return (