import React from 'react'; import { ExternalLinkIcon, XIcon } from 'lucide-react'; import { Button } from '../../ui/button'; /** * The canvas beside the conversation: what the merchant opened from the chat * is shown here rather than on another page, so the thread that produced it * stays on screen and still takes instructions. The whole page is one click * away for the times they do want the window to themselves. */ export function HomeCanvas({ title, fullPageTo, onClose, children, className = '', shellClassName = 'h-[70vh] xl:sticky xl:top-0 xl:h-[calc(100vh-8rem)]', bodyClassName = 'p-4', }: { title: string; /** The route showing the same thing full page; opened in its own tab, since * the point of the canvas is that the thread stays live beside it. */ fullPageTo: string; onClose: () => void; children: React.ReactNode; className?: string; shellClassName?: string; /** The padding around the canvas body; a panel of full-width rows sets it * to nothing and draws its own. */ bodyClassName?: string; }): React.ReactElement { return (

{title}

{children}
); }