import { Button, PanelBody, PanelRow } from '@wordpress/components'; import { __ } from '@wordpress/i18n'; import './dashboard.scss'; import compatibleRender from '@utils/compatible-render'; export function Dashboard() { return (

{ __( 'GenerateBlocks', 'generateblocks' ) }

{ __( 'Take WordPress to the next level.', 'generateblocks' ) }

{ ! generateblocksDashboard.gbpVersion && ( ) }
  • Version: { generateblocksDashboard.gbVersion }
  • { !! generateblocksDashboard.gbpVersion ? (
  • Pro Version: { generateblocksDashboard.gbpVersion }
  • ) : (
  • Pro Version: Not Installed. Get Pro
  • ) }
); } window.addEventListener( 'DOMContentLoaded', () => { compatibleRender( document.getElementById( 'gblocks-dashboard' ), ); } );