import { type ReactNode } from "react"; import { DockLayout, DockLayoutBottom, DockLayoutContent, DockLayoutLeft, DockLayoutRight, DockLayoutTop, } from "./LayoutSlots"; interface DockLayoutViewProps { left?: ReactNode; right?: ReactNode; top?: ReactNode; bottom?: ReactNode; children?: ReactNode; className?: string; leftClassName?: string; rightClassName?: string; topClassName?: string; bottomClassName?: string; contentClassName?: string; hideUI?: boolean; } export const DockLayoutView = ({ left, right, top, bottom, children, className, leftClassName, rightClassName, topClassName, bottomClassName, contentClassName, hideUI = false, }: DockLayoutViewProps) => { const uiVisibilityClass = hideUI ? "invisible pointer-events-none" : ""; return ( {children} {top && ( {top} )}
{left && {left}} {right && {right}}
{bottom && ( {bottom} )}
); };