(origin: Origin)
| 140 | }, [post, hasCommentQuery, onShowComment, router, shouldHandleCommentQuery]); |
| 141 | |
| 142 | const onCommentClick = (origin: Origin) => { |
| 143 | if (!user) { |
| 144 | return showLogin({ trigger: AuthTriggers.NewComment }); |
| 145 | } |
| 146 | |
| 147 | onShowComment(origin); |
| 148 | focusInputById(inputId); |
| 149 | return undefined; |
| 150 | }; |
| 151 | |
| 152 | useImperativeHandle(ref, () => ({ |
| 153 | onShowInput: onCommentClick, |
no test coverage detected