import { Slot } from "@radix-ui/react-slot"; import type { ComponentProps } from "react"; import { forwardRef } from "react"; import { cn } from "../../../hooks"; export const DockLayout = forwardRef>( ({ className, ...props }, ref) => { return (
); }, ); DockLayout.displayName = "DockLayout"; interface DockLayoutChildProps extends ComponentProps<"div"> { asChild?: boolean; } export function DockLayoutContent({ className, ...props }: Readonly>) { return (
); } export function DockLayoutLeft({ className, asChild, ...props }: Readonly) { const Comp = asChild ? Slot : "div"; return ( ); } export function DockLayoutTop({ className, ...props }: Readonly>) { return (
); } export function DockLayoutRight({ className, asChild, ...props }: Readonly) { const Comp = asChild ? Slot : "div"; return ( ); } export const DockLayoutBottom = forwardRef( ({ className, asChild, ...props }, ref) => { const Comp = asChild ? Slot : "div"; return ( ); }, ); DockLayoutBottom.displayName = "DockLayoutBottom";