mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-08 12:24:45 +00:00
36 lines
755 B
TypeScript
36 lines
755 B
TypeScript
"use client";
|
|
|
|
import { Handle, Position } from "@xyflow/react";
|
|
import type { CSSProperties } from "react";
|
|
|
|
interface HiddenHandlesProps {
|
|
sourcePosition?: Position;
|
|
style?: CSSProperties;
|
|
targetPosition?: Position;
|
|
sourceStyle?: CSSProperties;
|
|
targetStyle?: CSSProperties;
|
|
}
|
|
|
|
export const HiddenHandles = ({
|
|
sourcePosition = Position.Right,
|
|
sourceStyle,
|
|
style,
|
|
targetPosition = Position.Left,
|
|
targetStyle,
|
|
}: HiddenHandlesProps) => (
|
|
<>
|
|
<Handle
|
|
type="target"
|
|
position={targetPosition}
|
|
className="invisible"
|
|
style={{ ...style, ...targetStyle }}
|
|
/>
|
|
<Handle
|
|
type="source"
|
|
position={sourcePosition}
|
|
className="invisible"
|
|
style={{ ...style, ...sourceStyle }}
|
|
/>
|
|
</>
|
|
);
|