import { motion } from "motion/react" import type { ReactNode } from "react" import { SidebarTrigger } from "@/components/ui/sidebar" import { slideUp, transitions } from "@/lib/motion" import { cn } from "@/lib/utils" /** * What you are looking at, floating top-centre over a full-bleed canvas. * * Reference rather than navigation: switching to another flow or dashboard is * what the overviews are for, so this bar carries the name and nothing that * takes you away from it. Shared by the flow editor and the dashboards so the * two shells read as one. * * The one exception sits beside it rather than in it: a dashboard assigned to * a panel alongside others is edited with that panel's rail on screen, because * the wall has it too and it takes room off the canvas. */ export function CanvasTitle({ children, className, }: { children: ReactNode /** Lets the shell move the bar out of the way. */ className?: string }) { return ( {/* The sidebar carries its own collapse control; a phone has no sidebar on screen to carry it. */} {children} ) }