mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
15 lines
307 B
JavaScript
15 lines
307 B
JavaScript
// Ref: https://reactjs.org/docs/context.html
|
|
const React = require('react');
|
|
|
|
const AppContext = React.createContext({
|
|
site: {},
|
|
member: {},
|
|
action: '',
|
|
brandColor: '',
|
|
pageData: {},
|
|
onAction: (action, data) => {
|
|
return {action, data};
|
|
}
|
|
});
|
|
|
|
export default AppContext;
|