panel.tsx 383 B

123456789101112
  1. import { cn } from '@/lib/utils';
  2. import { Panel as PanelPrimitive } from '@xyflow/react';
  3. import type { ComponentProps } from 'react';
  4. type PanelProps = ComponentProps<typeof PanelPrimitive>;
  5. export const Panel = ({ className, ...props }: PanelProps) => (
  6. <PanelPrimitive
  7. className={cn('m-4 overflow-hidden rounded-md border bg-card p-1', className)}
  8. {...props}
  9. />
  10. );