UNPKG

@keycloakify/keycloak-admin-ui

Version:
10 lines 878 B
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime"; import { memo } from "react"; import { Handle, Position } from "reactflow"; const SubFlowNodeInner = ({ data: { label }, prefix, selected, }) => { return (_jsxs(_Fragment, { children: [_jsx(Handle, { position: Position.Right, type: "source" }), _jsx("div", { className: `react-flow__node-default keycloak__authentication__subflow_node ${selected ? "selected" : ""}`, children: _jsxs("div", { children: [prefix, " ", label] }) }), _jsx(Handle, { position: Position.Left, type: "target" })] })); }; export const SubFlowNode = memo(SubFlowNodeInner); export const StartSubFlowNode = ({ ...props }) => (_jsx(SubFlowNode, { ...props, prefix: "Start" })); export const EndSubFlowNode = ({ ...props }) => (_jsx(SubFlowNode, { ...props, prefix: "End" })); //# sourceMappingURL=SubFlowNode.js.map