(post: Post, userId: string)
| 1352 | }; |
| 1353 | |
| 1354 | export const checkCanBoostByUser = (post: Post, userId: string) => |
| 1355 | (post?.author?.id && post?.author?.id === userId) || |
| 1356 | (post?.scout?.id && post?.scout?.id === userId); |
| 1357 | |
| 1358 | export const useCanBoostPost = (post: Post) => { |
| 1359 | const { user } = useAuthContext(); |