import page from '@automattic/calypso-router';
import { useTranslate } from 'i18n-calypso';
import { createElement } from 'react';
import DocumentHead from 'calypso/components/data/document-head';
import AppsComponent from 'calypso/me/get-apps';
import SidebarComponent from 'calypso/me/sidebar';
export function sidebar( context, next ) {
context.secondary = createElement( SidebarComponent, {
context: context,
} );
next();
}
export function profile( context, next ) {
const ProfileComponent = require( 'calypso/me/profile' ).default;
const ProfileTitle = () => {
const translate = useTranslate();
return ;
};
context.primary = (
<>
>
);
next();
}
export function apps( context, next ) {
const AppsTitle = () => {
const translate = useTranslate();
return ;
};
context.primary = (
<>
>
);
next();
}
export function profileRedirect() {
page.redirect( '/me' );
}