import { registerBlockType } from '@wordpress/blocks';
import { InnerBlocks } from '@wordpress/block-editor';
import { __ } from '@wordpress/i18n';
import { defaultBlock } from '../../icons';
import Edit from './edit';
import './editor.scss';

registerBlockType('memberpress/readylaunch-account', {
  title: __('ReadyLaunch Account', 'memberpress'),
  icon: defaultBlock,
  category: 'memberpress',
  description: __('ReadyLaunch account page wrapper with menu and content.', 'memberpress'),
  keywords: [__('account', 'memberpress'), __('readylaunch', 'memberpress')],
  supports: {
    customClassName: false,
    html: false,
  },
  edit: Edit,
  save: function () {
    return <InnerBlocks.Content />;
  },
});
