import ChannelMessageItem from "@app/channel/components/messages/item";
import { sortedChannelMessagesAtom } from "@stores/channel";
import { getHourAgo } from "@utils/date";
import { useAtomValue } from "jotai";
import { useCallback, useRef } from "react";
import { Virtuoso } from "react-virtuoso";
export default function ChannelMessageList() {
const now = useRef(new Date());
const virtuosoRef = useRef(null);
const data = useAtomValue(sortedChannelMessagesAtom);
const itemContent: any = useCallback(
(index: string | number) => {
return
Be the first to share a message in this channel.