import UserInfo from "../user-info";
import ChatStats from "../chat-stats";

export default function ChatDetails({chat, setIsOpen}) {
    return (
        <div className="lbaic-settings-chats-details-in lbaic-settings-scroll-y lbaic-settings-scroll-style">
            <UserInfo
                user={chat?.user}
                onClose={() => setIsOpen(false)}
            />
            <div className="lbaic-settings-divider"></div>
            <ChatStats
                chat={chat}
            />
        </div>
    );
}
