Files
medicalalert-web-reloaded/wp/wp-content/plugins/leadin/scripts/gutenberg/MeetingsBlock/MeetingSaveBlock.tsx
2024-06-17 14:42:23 -04:00

17 lines
429 B
TypeScript

import React from 'react';
import { RawHTML } from '@wordpress/element';
import { IMeetingBlockAttributes } from './registerMeetingBlock';
export default function MeetingSaveBlock({
attributes,
}: IMeetingBlockAttributes) {
const { url } = attributes;
if (url) {
return (
<RawHTML className="wp-block-leadin-hubspot-meeting-block">{`[hubspot url="${url}" type="meeting"]`}</RawHTML>
);
}
return null;
}