(post: Post, userId: string)
| 1437 | }; |
| 1438 | |
| 1439 | export const checkCanBoostByUser = (post: Post, userId: string) => |
| 1440 | (post?.author?.id && post?.author?.id === userId) || |
| 1441 | (post?.scout?.id && post?.scout?.id === userId); |
| 1442 | |
| 1443 | export const useCanBoostPost = (post: Post) => { |
| 1444 | const { user } = useAuthContext(); |