mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
16 lines
307 B
JavaScript
16 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;
|