import { BsThreeDots } from "react-icons/bs"; import { FaBell, FaClock, FaLink } from "react-icons/fa"; import { IoTimer } from "react-icons/io5"; import Room from "../models/room"; import RoomTypeTag from "./RoomTypeTag"; import Image from "next/image"; import { useAuth } from "../contexts/authContext"; import { Tooltip } from "antd"; interface IRoomCardProps { room: Room; } export default function RoomCard(props: IRoomCardProps) { const { currUser } = useAuth(); // const x = {`${ // props.room.membersInRoom?.includes(currUser.uid) // ? " bg-white bg-opacity-80" // : "bg-gray-300 bg-opacity-25" // }`} var isUserInRoom: boolean; if (props.room.membersInRoom?.includes(currUser.uid)) { isUserInRoom = true; } const membersInRoom = ( profile profile ); return ( {/* header */} {/* meeting details */} {props.room.name} {props.room.description} {/* badges and tags */} {/* scrum */} {/* room status and link(s) */} {/* room attachments */} {props.room.attachments && props.room.attachments.length > 0 && ( )} {/* footer */} {membersInRoom} {" "} ); }