import { Check } from "lucide-react"; import { NavLink } from "react-router"; import type { RecipientChannel } from "~/lib/api/types"; import { cn } from "~/lib/utils"; import { useUsersStore } from "~/stores/users-store"; import { Badge } from "../ui/badge"; import { Button } from "../ui/button"; import UserAvatar from "../user-avatar"; import { OnlineStatus } from "./online-status"; interface PrivateChannelListItemProps { channel: RecipientChannel; } export default function PrivateChannelListItem({ channel, }: PrivateChannelListItemProps) { const currentUserId = useUsersStore((state) => state.currentUserId); const recipients = channel.recipients.filter( (recipient) => recipient.id !== currentUserId, ); const renderSystemBadge = recipients.some((recipient) => recipient.system) && recipients.length === 1; return ( <> {({ isActive }) => ( )} ); }