import page from '@automattic/calypso-router';
import { BillingHistory, ReceiptView } from 'calypso/my-sites/purchases/billing-history';
import CrmDownloads from 'calypso/my-sites/purchases/crm-downloads';
import {
Purchases,
PurchaseDetails,
PurchaseCancel,
PurchaseCancelDomain,
PurchaseChangePaymentMethod,
PurchaseDowngrade,
} from 'calypso/my-sites/purchases/main';
import {
PaymentMethods,
SiteLevelAddNewPaymentMethod,
} from 'calypso/my-sites/purchases/payment-methods';
export function redirectToPurchases( context ) {
const siteDomain = context.params.site;
if ( siteDomain ) {
return page.redirect( `/purchases/subscriptions/${ siteDomain }` );
}
return page.redirect( '/purchases' );
}
export const purchases = ( context, next ) => {
context.primary = ;
next();
};
export const purchaseDetails = ( context, next ) => {
context.primary = (
);
next();
};
export const purchaseCancel = ( context, next ) => {
context.primary = (
);
next();
};
export const planDowngrade = ( context, next ) => {
context.primary = (
);
next();
};
export const purchaseCancelDomain = ( context, next ) => {
context.primary = (
);
next();
};
export const purchaseChangePaymentMethod = ( context, next ) => {
context.primary = (
);
next();
};
export const paymentMethods = ( context, next ) => {
context.primary = ;
next();
};
export const addPaymentMethod = ( context, next ) => {
context.primary = ;
next();
};
export const billingHistory = ( context, next ) => {
context.primary = ;
next();
};
export const receiptView = ( context, next ) => {
context.primary = (
);
next();
};
export const crmDownloads = ( context, next ) => {
context.primary = ;
next();
};