PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.0.7
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.0.7
11.3.75 11.3.73 11.3.71 11.3.70 11.3.69 11.3.64 11.3.65 11.3.62 11.3.61 11.3.56 11.3.58 11.0.31 11.0.52 11.0.54 11.0.56 11.0.58 11.0.7 11.1.10 11.1.11 11.1.13 11.1.14 11.1.15 11.1.2 11.1.20 11.1.21 All 73 releases
leadin / scripts / shared / Form / FormSelector.tsx

FormSelector.tsx in HubSpot All-In-One Marketing – Forms, Popups, Live Chat 11.0.7, at scripts/shared/Form/FormSelector.tsx

37 lines 881 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React from 'react';
2 import HubspotWrapper from '../Common/HubspotWrapper';
3 import { pluginPath } from '../../constants/leadinConfig';
4 import AsyncSelect from '../Common/AsyncSelect';
5 import { __ } from '@wordpress/i18n';
6
7 interface IFormSelectorProps {
8 loadOptions: Function;
9 onChange: Function;
10 value: any;
11 }
12
13 export default function FormSelector({
14 loadOptions,
15 onChange,
16 value,
17 }: IFormSelectorProps) {
18 return (
19 <HubspotWrapper pluginPath={pluginPath}>
20 <p data-test-id="leadin-form-select">
21 <b>
22 {__(
23 'Select an existing form or create a new one from a template',
24 'leadin'
25 )}
26 </b>
27 </p>
28 <AsyncSelect
29 placeholder={__('Search for a form', 'leadin')}
30 value={value}
31 loadOptions={loadOptions}
32 onChange={onChange}
33 />
34 </HubspotWrapper>
35 );
36 }
37