import type React from "react"; import { Message } from "@components/PageComponents/Messages/Message.js"; import { MessageInput } from "@components/PageComponents/Messages/MessageInput.js"; import { useDevice } from "@core/providers/useDevice.js"; import type { Channel } from "@core/stores/deviceStore.js"; export interface ChannelChatProps { channel: Channel; } export const ChannelChat = ({ channel }: ChannelChatProps): JSX.Element => { const { nodes, connection, ackMessage } = useDevice(); return (
{channel.messages.map((message, index) => ( node.data.num === message.packet.from)?.data } /> ))}
); };