2022-07-05 11:22:31 +03:00
|
|
|
// Ref: https://reactjs.org/docs/context.html
|
2023-07-27 10:49:51 +03:00
|
|
|
import React from 'react';
|
2022-07-05 11:22:31 +03:00
|
|
|
|
|
|
|
const AppContext = React.createContext({
|
|
|
|
posts: [],
|
|
|
|
authors: [],
|
|
|
|
tags: [],
|
|
|
|
action: '',
|
|
|
|
lastPage: '',
|
|
|
|
page: '',
|
|
|
|
pageData: {},
|
2023-07-27 10:49:51 +03:00
|
|
|
// eslint-disable-next-line no-unused-vars
|
2022-07-08 11:37:32 +03:00
|
|
|
dispatch: (_action, _data) => {},
|
|
|
|
searchIndex: null,
|
|
|
|
indexComplete: false,
|
|
|
|
searchValue: ''
|
2022-07-05 11:22:31 +03:00
|
|
|
});
|
|
|
|
|
|
|
|
export default AppContext;
|