File size: 383 Bytes
f56a29b
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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('m-4 overflow-hidden rounded-md border bg-card p-1', className)}
    {...props}
  />
);