| 1 |
import React from 'react'; |
| 2 |
import { RawHTML } from '@wordpress/element'; |
| 3 |
import { IMeetingBlockAttributes } from './registerMeetingBlock'; |
| 4 |
|
| 5 |
export default function MeetingSaveBlock({ |
| 6 |
attributes, |
| 7 |
}: IMeetingBlockAttributes) { |
| 8 |
const { url } = attributes; |
| 9 |
|
| 10 |
if (url) { |
| 11 |
return ( |
| 12 |
<RawHTML className="wp-block-leadin-hubspot-meeting-block">{`[hubspot url="${url}" type="meeting"]`}</RawHTML> |
| 13 |
); |
| 14 |
} |
| 15 |
return null; |
| 16 |
} |
| 17 |
|