import React, { SetStateAction, useState } from "react"; import { useIsSmallScreen } from "../components/ContextProvider"; import Comment from "../components/conversation/comment"; import { PopUp } from "./popup"; import { Comment as CommentType } from "@metahkg/api"; export default function CommentPopup(props: { open: boolean; setOpen: React.Dispatch>; showReplies?: boolean; comment: CommentType; fetchComment?: boolean; openComment?: boolean; }) { const { open, setOpen, comment, showReplies, fetchComment, openComment } = props; const [isExpanded, setIsExpanded] = useState(!!showReplies); const isSmallScreen = useIsSmallScreen(); return ( ); }