{
onSubmitted(comment.id);
if (postedComment) onPosted(postedComment);
}}
{onCancel}
onSubmit={async (content, temp_id) => {
postedComment = await commentsRequest(
`/${comment.parent_id ?? comment.id}/replies`,
'POST',
{ content, temp_id, reply_to_id: comment.id }
);
}}
/>