PluginProbe
HubSpot All-In-One Marketing – Forms, Popups, Live Chat / 11.3.65
HubSpot All-In-One Marketing – Forms, Popups, Live Chat v11.3.65
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 / elementor / MeetingWidget / MeetingWidgetController.tsx

MeetingWidgetController.tsx in HubSpot All-In-One Marketing – Forms, Popups, Live Chat 11.3.65, at scripts/elementor/MeetingWidget/MeetingWidgetController.tsx

35 lines 947 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 { connectionStatus } from '../../constants/leadinConfig';
3 import ErrorHandler from '../../shared/Common/ErrorHandler';
4 import MeetingsEdit from '../../shared/Meeting/MeetingEdit';
5 import { IMeetingAttributes } from './registerMeetingWidget';
6
7 const ConnectionStatus = {
8 Connected: 'Connected',
9 NotConnected: 'NotConnected',
10 };
11
12 export default function MeetingWidgetController(
13 attributes: IMeetingAttributes,
14 setValue: Function
15 ) {
16 return () => {
17 const render = () => {
18 if (connectionStatus === ConnectionStatus.Connected) {
19 return (
20 <MeetingsEdit
21 attributes={attributes}
22 isSelected={true}
23 setAttributes={setValue}
24 preview={false}
25 origin="elementor"
26 />
27 );
28 } else {
29 return <ErrorHandler status={401} />;
30 }
31 };
32 return <Fragment>{render()}</Fragment>;
33 };
34 }
35