File size: 2,062 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
import { type Callback } from '@automattic/calypso-router';
import PageViewTracker from 'calypso/a8c-for-agencies/components/a4a-page-view-tracker';
import MigrationsSidebar from 'calypso/a8c-for-agencies/components/sidebar-menu/migrations';
import ReferralsBankDetails from '../referrals/primary/bank-details';
import MigrationsCommissions from './primary/migrations-commissions';
import MigrationsOverviewV2 from './primary/migrations-overview-v2';
import SelfMigrationTool from './primary/self-migration-tool';
export const migrationsOverviewContext: Callback = ( context, next ) => {
context.primary = (
<>
<PageViewTracker title="Migrations > Overview" path={ context.path } />
<MigrationsOverviewV2 />
</>
);
context.secondary = <MigrationsSidebar path={ context.path } />;
next();
};
export const migrateToPressableContext: Callback = ( context, next ) => {
context.primary = (
<>
<PageViewTracker title="Migrations > Migrate to Pressable" path={ context.path } />
<SelfMigrationTool type="pressable" />
</>
);
context.secondary = <MigrationsSidebar path={ context.path } />;
next();
};
export const migrateToWpcomContext: Callback = ( context, next ) => {
context.primary = (
<>
<PageViewTracker title="Migrations > Migrate to WordPress.com" path={ context.path } />
<SelfMigrationTool type="wpcom" />
</>
);
context.secondary = <MigrationsSidebar path={ context.path } />;
next();
};
export const migrationsCommissionsContext: Callback = ( context, next ) => {
context.primary = (
<>
<PageViewTracker title="Migrations > Commissions" path={ context.path } />
<MigrationsCommissions />
</>
);
context.secondary = <MigrationsSidebar path={ context.path } />;
next();
};
export const migrationsPaymentSettingsContext: Callback = ( context, next ) => {
context.primary = (
<>
<PageViewTracker title="Migrations > Payment Settings" path={ context.path } />
<ReferralsBankDetails type="migrations" />
</>
);
context.secondary = <MigrationsSidebar path={ context.path } />;
next();
};
|