/** * Under the new-chat composer: the workspace's bot templates, one tap to start * a bot from each, and the page with all of them. Shows nothing until the * workspace has one, so ordinary new chats look as they always have. */ import { ChevronRightIcon } from "lucide-react"; import type { WorkspaceBotTemplate } from "@opengeni/contracts"; import { Link } from "../../lib/navigation"; import { cn } from "../../lib/utils"; import { SessionAvatar, sessionAvatarFallbackHue, sessionAvatarInitials, } from "../session/session-avatar"; const SHOWN = 4; export function BotTemplateShortcuts({ workspaceId, templates, disabled, className, }: { workspaceId: string; /** The workspace's templates; undefined while they load. */ templates: WorkspaceBotTemplate[] | undefined; disabled?: boolean | undefined; className?: string | undefined; }) { if (!templates || templates.length === 0) return null; return ( ); }