export const postComment = createAsyncThunk( 'postComment', async ({ comment, postId, postAuthorId }: IpostCommentParams) => { const response = await postApiJWT<IComment>('/comments/create', { comment, postId, }); void createNotification({ notificationType: 'COMMENT', notificationTypeId: response.data._id, userId: postAuthorId, postId, }); return response.data; }, );