/**
* WordPress dependencies
*/
import { select } from '@safe-wordpress/data';
import { render } from '@safe-wordpress/element';
import { _x } from '@safe-wordpress/i18n';
/**
* External dependencies
*/
import { ContextualHelp } from '@nelio-content/components';
import { store as NC_DATA } from '@nelio-content/data';
/**
* Internal dependencies
*/
import './store';
import { walkthrough } from './walkthrough';
import { Layout } from './components/layout';
export function initPage( id: string ): void {
const subscribed = select( NC_DATA ).isSubscribed();
const content = document.getElementById( id );
render( , content );
const help = document.getElementById( 'nelio-content-settings-title' );
if ( subscribed && help ) {
render(
,
help
);
}
}
// =======
// HELPERS
// =======
const HelpButton = ( {
className,
runWalkthrough,
}: {
readonly className: string;
readonly runWalkthrough: () => void;
} ) => (
);