import { demoAddressResolver } from '@/config/chatConstants' import { Card, Text } from '@nextui-org/react' import Image from 'next/image' import NextLink from 'next/link' import ChatAvatar from './ChatAvatar' /** * Types */ interface IProps { topic?: string peerAccount: string latestMessage?: string } /** * Component */ export default function ChatSummaryCard({ peerAccount, topic, latestMessage }: IProps) { return (
{demoAddressResolver[peerAccount] ?? peerAccount} {latestMessage ?? ''}
session icon
) }