import { Dropdown, IDropdownOption, IDropdownStyles, IImageProps, Image, Label, Stack, TextField, } from "office-ui-fabric-react"; import React, { FunctionComponent } from "react"; import AddPropertyIcon from "../../../../images/Add-property.svg"; import EntityCancelIcon from "../../../../images/Entity_cancel.svg"; const dropdownStyles: Partial = { dropdown: { width: 100 } }; const options = [ { key: "string", text: "String" }, { key: "custom", text: "Custom" }, ]; export interface InputParameterProps { dropdownLabel?: string; inputParameterTitle?: string; inputLabel?: string; isAddRemoveVisible: boolean; onDeleteParamKeyPress?: () => void; onAddNewParamKeyPress?: () => void; onParamValueChange: (event: React.FormEvent, newInput?: string) => void; onParamKeyChange: (event: React.FormEvent, selectedParam: IDropdownOption) => void; paramValue: string; selectedKey: string | number; } export const InputParameter: FunctionComponent = ({ dropdownLabel, inputParameterTitle, inputLabel, isAddRemoveVisible, paramValue, selectedKey, onDeleteParamKeyPress, onAddNewParamKeyPress, onParamValueChange, onParamKeyChange, }: InputParameterProps): JSX.Element => { const imageProps: IImageProps = { width: 20, height: 30, className: dropdownLabel ? "addRemoveIconLabel" : "addRemoveIcon", }; return ( <> {inputParameterTitle && } {isAddRemoveVisible && ( <> Delete param Add param )} ); };