This repository has been archived on 2025-09-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
resolver/src/store/reducers/posts/postSelector.ts
2018-04-04 10:33:15 +07:00

9 lines
218 B
TypeScript

import {Map} from 'immutable'
const getPost = (state: Map<string, any>, userId: string, postId: string) => {
return state.getIn(['post', 'userPosts', userId, postId])
}
export const postSelector = {
getPost
}