Files
deerflow-code/frontend-web/src/components/ai-elements/panel.tsx
T
2026-05-13 14:36:44 +08:00

16 lines
417 B
TypeScript

import { cn } from "@/lib/utils";
import { Panel as PanelPrimitive } from "@xyflow/react";
import type { ComponentProps } from "react";
type PanelProps = ComponentProps<typeof PanelPrimitive>;
export const Panel = ({ className, ...props }: PanelProps) => (
<PanelPrimitive
className={cn(
"bg-card m-4 overflow-hidden rounded-md border p-1",
className,
)}
{...props}
/>
);