import type React from 'react'; import { FiSettings } from 'react-icons/fi'; import { IconButton } from '@components/generic/button/IconButton'; import { SidebarItem } from '@components/layout/Sidebar/SidebarItem'; import { Hashicon } from '@emeraldpay/hashicon-react'; import type { Protobuf } from '@meshtastic/meshtasticjs'; export interface DmChatProps { node: Protobuf.NodeInfo; selectedIndex: number; setSelectedIndex: (index: number) => void; } export const DmChat = ({ node, selectedIndex, setSelectedIndex, }: DmChatProps): JSX.Element => { return ( { setSelectedIndex(node.num); }} actions={} />} >
{node.user?.longName ?? 'Unknown'}
); };