misc_pterodactyl-panel/resources/scripts/state/admin/index.ts

21 lines
500 B
TypeScript
Raw Normal View History

import { createContextStore } from 'easy-peasy';
import { composeWithDevTools } from 'redux-devtools-extension';
2021-01-01 00:27:16 +00:00
import nests, { AdminNestStore } from '@/state/admin/nests';
import roles, { AdminRoleStore } from '@/state/admin/roles';
interface AdminStore {
2021-01-01 00:27:16 +00:00
nests: AdminNestStore
roles: AdminRoleStore;
}
export const AdminContext = createContextStore<AdminStore>({
2021-01-01 00:27:16 +00:00
nests,
roles,
}, {
compose: composeWithDevTools({
name: 'AdminStore',
trace: true,
}),
});