import { Avatar, Badge } from "antd";
import { useRouter } from "next/router";
import {
FaDotCircle,
FaWalking,
FaRocket,
FaCheckDouble,
FaCircle,
FaUser,
FaRegClock,
FaCheck,
FaAngleRight,
FaGithub,
FaAtlassian,
} from "react-icons/fa";
import { Routes } from "@nirvana/common/helpers/routes";
import LiveRoom from "../Conversations/LiveRoom";
import Conversation from "@nirvana/common/models/conversation";
import { useRecoilValue } from "recoil";
import { liveRoomsSelector } from "../../recoil/main";
export default function Conversations() {
const router = useRouter();
const liveRooms = useRecoilValue(liveRoomsSelector);
const handleViewConversationDetails = (convoId) => {
router.push({
pathname: Routes.home,
query: { convoId },
});
};
return (
<>
{liveRooms?.length > 0 && (
<>
Live
{/* row of live room cards */}
{liveRooms.map((lRoom) => (
))}
>
)}
{/* Today */}
Today
handleViewConversationDetails("woah")}
className="flex flex-col w-full items-stretch"
>
{/* engineering */}
K
}
/>
}
/>
}
/>
}
/>
Engineering
{`Josh: "let's just figure out how to finish the rest of the "`}
9:00am
{/* actions */}
{/* general */}
General
You spoke 2 hours ago
7:22am
{/* actions */}
{/* one on one chat with sydney */}
Sydney
{`"Did you ever figure out that problem with the "`}
6:50am
{/* actions */}
Last 7 Days
Justin
{`"Here's a quick github link for that library you were looking for"`}
6:50am
{/* actions */}
Steph and Lee
{`"Let's hop into a room to discuss this sometime this afternoon..."`}
6:50am
{/* actions */}
Earlier This Month
November 2021
{"That's all"}
>
);
}