-
- {messageElementsArray}
+
+
+
+ {children}
)
}
-export default Chat;
\ No newline at end of file
+export default ChatWrapper;
\ No newline at end of file
diff --git a/src/Chat/ChatMessage.tsx b/src/Chat/ChatMessage.tsx
deleted file mode 100644
index f9ae9e4..0000000
--- a/src/Chat/ChatMessage.tsx
+++ /dev/null
@@ -1,34 +0,0 @@
-enum FileType {
- FILE_TXT,
- DOCUMENT_WORD,
- DOCUMENT_PDF,
- IMAGE,
- EXEC_BINARY,
- UNKNOWN,
-}
-export type User = {
- name: string,
- userId: string,
- avatar: Avatar
-}
-export type Avatar = {
- pictureUri: string,
-}
-export type Attachment = {
- name: string,
- uri: string,
- sizeBytes: number,
- filetype: FileType
-}
-export type ChatMessage = {
- from: string,
- fromIP: string,
- to: Array
,
- toIPs: Array,
- timestampPosted: number,
- message: string,
- attachments: Attachment
-}
-export type ServerMsgType = {
-
-}
diff --git a/src/Chat/types.tsx b/src/Chat/types.tsx
new file mode 100644
index 0000000..5ab5af7
--- /dev/null
+++ b/src/Chat/types.tsx
@@ -0,0 +1,5 @@
+export type MessageType = {
+ from: string,
+ to: string,
+ content: string
+}
\ No newline at end of file