showCreateThreadDialog = false}
onkeydown={(e) => e.key === 'Escape' && (showCreateThreadDialog = false)}
tabindex="-1"
>
{/if}
{#if showReplyDialog && userPubkey && replyingToThread}
showReplyDialog = false}
onkeydown={(e) => e.key === 'Escape' && (showReplyDialog = false)}
tabindex="-1"
>
e.stopPropagation()}
onkeydown={(e) => e.stopPropagation()}
tabindex="-1"
>
{replyingToComment ? 'Reply to Comment' : 'Reply to Thread'}
{/if}