import { useNavigate } from "@solidjs/router";
import { For, JSXElement, Show, createSignal } from "solid-js";
import { CheckMark, loadSpinner } from "../Util/Icons";
import { PublicComment, getComments } from "../Util/api";
//exported into primary as a Route
export function Comment({ postId }: { postId: string }): JSXElement {
const [comments, setComments] = createSignal([] as PublicComment[]);
const [loading, setLoading] = createSignal(true);
getComments(postId, 10, 0).then((comment) => {
setComments(comment);
setLoading(false);
});
return (
{props.comment?.content}