import { Link, useQuery, Routes } from "blitz"; import { faChevronRight } from "@fortawesome/pro-regular-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import getConversationsQuery from "../queries/get-conversations"; import { formatRelativeDate } from "../../core/helpers/date-formatter"; export default function ConversationsList() { const conversations = useQuery(getConversationsQuery, {})[0]; if (Object.keys(conversations).length === 0) { return