1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 12:56:41 +07:00
vault-frontend/src/redux/node/selectors.ts
2021-03-29 09:27:49 +07:00

6 lines
309 B
TypeScript

import { IState } from '../store';
export const selectNode = (state: IState) => state.node;
export const selectNodeComments = (state: IState) => state.node.comments;
export const selectNodeCurrent = (state: IState) => state.node.current;
export const selectNodeEditor = (state: IState) => state.node.editor;