FactuGES_ERP/packages/rdx-ui/src/components/right-panel/right-panel.tsx

22 lines
443 B
TypeScript
Raw Normal View History

import { Card } from "@repo/shadcn-ui/components";
import { cn } from "@repo/shadcn-ui/lib/utils";
2026-03-31 15:56:41 +00:00
import type { RightPanelProps } from "./right-panel-types.ts";
export const RightPanel = ({
open,
className,
children,
...props
2026-03-31 15:56:41 +00:00
}: RightPanelProps) => {
if (!open) {
return null;
}
2026-03-31 15:56:41 +00:00
return (
<Card className={cn("flex h-full min-w-0 flex-col overflow-hidden", className)} {...props}>
{children}
2026-03-31 18:13:03 +00:00
</Card>
2026-03-31 15:56:41 +00:00
);
};