import React, { useState } from "react"; import { getAvatarColor } from "../../../modules/collaboration/functions/getAvatarColor"; const CommentThreads: React.FC = () => { const [expand, setExpand] = useState(true); const commentsedUsers = [ { userId: "1", userName: "user", }, { userId: "1", userName: "Admin", }, ]; function getDetails(type?: "clicked") { if (type === "clicked") { setExpand(true); } else { setExpand((prev) => !prev); } } return (