PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.3.61
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.3.61
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 / Meeting / MeetingSelector.tsx

MeetingSelector.tsx in HubSpot All-In-One Marketing – Forms, Popups, Live Chat 11.3.61, at scripts/shared/Meeting/MeetingSelector.tsx

39 lines 840 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import React, { Fragment } from 'react';
2 import AsyncSelect from '../Common/AsyncSelect';
3 import UISpacer from '../UIComponents/UISpacer';
4 import { __ } from '@wordpress/i18n';
5
6 interface IMeetingSelectorProps {
7 options: any[];
8 onChange: Function;
9 value: any;
10 }
11
12 export default function MeetingSelector({
13 options,
14 onChange,
15 value,
16 }: IMeetingSelectorProps) {
17 const optionsWrapper = [
18 {
19 label: __('Meeting name', 'leadin'),
20 options,
21 },
22 ];
23
24 return (
25 <Fragment>
26 <UISpacer />
27 <p data-test-id="leadin-meeting-select">
28 <b>{__('Select a meeting scheduling page', 'leadin')}</b>
29 </p>
30 <AsyncSelect
31 defaultOptions={optionsWrapper}
32 onChange={onChange}
33 placeholder={__('Select a meeting', 'leadin')}
34 value={value}
35 />
36 </Fragment>
37 );
38 }
39