File size: 311 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import { createElement } from 'react';
import MainComponent from './main';
export default {
unsubscribe( context, next ) {
const { email, category, hmac, ...rest } = context.query;
context.primary = createElement( MainComponent, {
email,
category,
hmac,
context: rest,
} );
next();
},
};
|