import { useChannelProfile } from "@app/channel/hooks/useChannelProfile"; import { usePageContext } from "@utils/hooks/usePageContext"; import { twMerge } from "tailwind-merge"; export function ChannelsListItem({ data }: { data: any }) { const channel: any = useChannelProfile(data.event_id); const pageContext = usePageContext(); const searchParams: any = pageContext.urlParsed.search; const pageID = searchParams.id; return (
#
{channel?.name}
{data.new_messages && ( {data.new_messages} )}
); }