diff --git a/client-solid/src/Components/NewComment.tsx b/client-solid/src/Components/NewComment.tsx index 5d64272..ccfea2c 100644 --- a/client-solid/src/Components/NewComment.tsx +++ b/client-solid/src/Components/NewComment.tsx @@ -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, }: {