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