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