import type { HandleProps } from "@xyflow/react"; import type React from "react"; import { forwardRef } from "react"; import { BaseHandle } from "~/components/base-handle"; import { cn } from "~/lib/utils"; const flexDirections = { top: "flex-col", right: "flex-row-reverse justify-end", bottom: "flex-col-reverse justify-end", left: "flex-row", }; export const LabeledHandle = forwardRef< HTMLDivElement, HandleProps & React.HTMLAttributes & { title: string; handleClassName?: string; labelClassName?: string; } >( ( { className, labelClassName, handleClassName, title, position, ...props }, ref, ) => (
), ); LabeledHandle.displayName = "LabeledHandle";