Ghost/apps/portal/src/AppContext.js
Daniel Lockyer f3894d5898 Moved Portal to apps/
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
2023-06-16 13:37:58 +02:00

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;