# leadin/11.0.7/scripts/gutenberg/FormBlock/FormBlockSave.tsx

HubSpot All-In-One Marketing – Forms, Popups, Live Chat, version 11.0.7. 18 lines.

- Page: https://pluginprobe.com/plugins/leadin/11.0.7/code/scripts/gutenberg/FormBlock/FormBlockSave.tsx
- Raw: https://pluginprobe.com/plugins/leadin/11.0.7/raw/scripts/gutenberg/FormBlock/FormBlockSave.tsx
- Modified: 2024-03-06T11:43:04+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/leadin/11.0.7/code/scripts/gutenberg/FormBlock/FormBlockSave.tsx#L10-L20`.

```tsx
import React from 'react';
import { useBlockProps } from '@wordpress/block-editor';
import { RawHTML } from '@wordpress/element';
import { IFormBlockAttributes } from './registerFormBlock';

export default function FormSaveBlock({ attributes }: IFormBlockAttributes) {
  const { portalId, formId } = attributes;

  if (portalId && formId) {
    return (
      <RawHTML {...useBlockProps.save()}>
        {`[hubspot portal="${portalId}" id="${formId}" type="form"]`}
      </RawHTML>
    );
  }
  return null;
}

```
