import { PlusIcon } from "@radix-ui/react-icons"; import { cn } from "@/util/utils"; import { Input } from "./ui/input"; import { Popover, PopoverContent, PopoverTrigger } from "./ui/popover"; import { WorkflowBlockParameterSelect } from "@/routes/workflows/editor/nodes/WorkflowBlockParameterSelect"; type Props = Omit, "onChange"> & { onChange: (value: string) => void; nodeId: string; }; function WorkflowBlockInput(props: Props) { const { nodeId, onChange, ...inputProps } = props; return (
{ onChange(event.target.value); }} />
{ onChange(`${props.value ?? ""}{{${parameterKey}}}`); }} />
); } export { WorkflowBlockInput };