import type { ReactNode } from "react"; import { Button, Tooltip, TooltipContent, TooltipTrigger, useLayoutLeft, useLayoutRight, } from "@ace/ui"; import { IconSidebar } from "@ace/ui/icons"; const lead = "shrink-0 rounded-none! rounded-tl-[calc(var(--r-window)-3px)]! active:not-aria-[haspopup]:translate-y-0! active:scale-95 [&[aria-expanded=true]:not(:hover)]:!bg-transparent electrobun-webkit-app-region-no-drag"; /** The channel's title bar: the sidebar toggle, then each top pane's tab strip in its column. */ export function Bar({ children }: { children?: ReactNode }) { const left = useLayoutLeft(); const right = useLayoutRight(); return (
{children}
right.setOpen((open) => !open)} > } /> Toggle details sidebar
); }