Skip to main content
Glama

mcp-google-sheets

array-property-in-inline-item-mode.tsx2.07 kB
import React, { useRef } from 'react'; import { ArraySubProps } from '@activepieces/pieces-framework'; import { useBuilderStateContext, useIsFocusInsideListMapperModeInput, } from '../builder-hooks'; import { AutoPropertiesFormComponent } from './auto-properties-form'; import { TextInputWithMentions } from './text-input-with-mentions'; type BaseArrayPropertyProps = { inputName: string; disabled: boolean; }; type ArrayPiecePropertyInInlineItemModeProps = BaseArrayPropertyProps & ( | { arrayProperties: ArraySubProps<boolean> } | { arrayProperties: undefined; onChange: (value: string) => void; value: string; } ); const ArrayPiecePropertyInInlineItemMode = React.memo( (props: ArrayPiecePropertyInInlineItemModeProps) => { const containerRef = useRef<HTMLDivElement>(null); const [ isFocusInsideListMapperModeInput, setIsFocusInsideListMapperModeInput, ] = useBuilderStateContext((state) => [ state.isFocusInsideListMapperModeInput, state.setIsFocusInsideListMapperModeInput, ]); const { inputName, disabled } = props; useIsFocusInsideListMapperModeInput({ containerRef, setIsFocusInsideListMapperModeInput, isFocusInsideListMapperModeInput, }); return ( <div className="w-full" ref={containerRef}> {props.arrayProperties ? ( <div className="p-4 border rounded-md flex flex-col gap-4"> <AutoPropertiesFormComponent prefixValue={inputName} props={props.arrayProperties} useMentionTextInput={true} allowDynamicValues={false} disabled={disabled} /> </div> ) : ( <TextInputWithMentions disabled={disabled} onChange={props.onChange} initialValue={props.value ?? null} /> )} </div> ); }, ); ArrayPiecePropertyInInlineItemMode.displayName = 'ArrayPiecePropertyInInlineItemMode'; export { ArrayPiecePropertyInInlineItemMode };

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server