Example jsdoc

This commit is contained in:
Imbus 2024-03-06 02:06:13 +01:00
parent d2fd1a17ed
commit 9e302fc54a

View file

@ -4,6 +4,11 @@ import { JSXElement, Show, createSignal, onMount, useContext } from "solid-js";
import { LoginContext } from "../Context/GlobalState";
import { NewComment, createComment } from "../Util/api";
/** NewCommentInputArea is a component that allows users to submit a comment on a **post or comment**.
* @param {Object} props The properties for the NewCommentInputArea component.
* @param {number} props.parentPostId The id of the post that the comment is a reply to.
* @returns {JSXElement} A JSXElement that contains a textarea and a submit button.
*/
export function NewCommentInputArea({
parentPostId,
}: {