f3894d5898
refs https://github.com/TryGhost/Toolbox/issues/594 - we're moving all the standalone apps to a separate folder to keep them out of the core code and easier to find
17 lines
320 B
JavaScript
17 lines
320 B
JavaScript
// Ref: https://reactjs.org/docs/context.html
|
|
import React from 'react';
|
|
|
|
const AppContext = React.createContext({
|
|
site: {},
|
|
member: {},
|
|
action: '',
|
|
lastPage: '',
|
|
brandColor: '',
|
|
pageData: {},
|
|
onAction: (action, data) => {
|
|
return {action, data};
|
|
}
|
|
});
|
|
|
|
export default AppContext;
|