[Refactoring][Breaking Changes]
- Move `reducers` and `actions` folders to `store` folder. - Move pages container components to `containers` folder.
This commit is contained in:
9
src/store/reducers/posts/postSelector.ts
Normal file
9
src/store/reducers/posts/postSelector.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
const getPost = (state: any, userId: string, postId: string) => {
|
||||
return (state.post.userPosts && state.post.userPosts[userId] && state.post.userPosts[userId][postId])
|
||||
? state.post.userPosts[userId][postId]
|
||||
: null
|
||||
}
|
||||
|
||||
export const postSelector = {
|
||||
getPost
|
||||
}
|
||||
Reference in New Issue
Block a user