import { InputProps, InputWrapper, Select } from '@gear-js/ui'; import { Sails } from 'sails-js'; import { Fields } from '../fields'; import { useConstructor, useService } from '../../hooks'; import { ISailsFuncArg } from '../../types'; import styles from './payload-form.module.scss'; type BaseProps = Pick & { sails: Sails; args: ISailsFuncArg[]; }; type ConstructorProps = BaseProps & { select: ReturnType['select']; }; type ServiceProps = BaseProps & { select: ReturnType['select']; functionSelect: ReturnType['functionSelect']; }; type Props = ConstructorProps | ServiceProps; function PayloadForm({ sails, select, args, gap, direction = 'x', ...props }: Props) { const isFunction = 'functionSelect' in props; return ( } ); } export { PayloadForm };