feat: implement RdxEditor components including layout, section, and sticky footer with tests feat: introduce RdxFormGrid for form layout management feat: create RdxPage components for structured page layout with actions and headers feat: add RdxRowActions for handling row-level actions with dropdown support
22 lines
443 B
TypeScript
22 lines
443 B
TypeScript
import { Card } from "@repo/shadcn-ui/components";
|
|
import { cn } from "@repo/shadcn-ui/lib/utils";
|
|
|
|
import type { RightPanelProps } from "./right-panel-types.ts";
|
|
|
|
export const RightPanel = ({
|
|
open,
|
|
className,
|
|
children,
|
|
...props
|
|
}: RightPanelProps) => {
|
|
if (!open) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Card className={cn("flex h-full min-w-0 flex-col overflow-hidden", className)} {...props}>
|
|
{children}
|
|
</Card>
|
|
);
|
|
};
|