diff --git a/src/lib/GoogleAuth.svelte b/src/lib/GoogleAuth.svelte
index bea7fab..238dc36 100644
--- a/src/lib/GoogleAuth.svelte
+++ b/src/lib/GoogleAuth.svelte
@@ -1,5 +1,6 @@
+
+
diff --git a/src/lib/components/Messages.svelte b/src/lib/components/Messages.svelte
index 414709f..793f797 100644
--- a/src/lib/components/Messages.svelte
+++ b/src/lib/components/Messages.svelte
@@ -1,5 +1,5 @@
@@ -13,18 +13,3 @@
{/each}
-
-
diff --git a/src/lib/components/interfaces/Message.ts b/src/lib/components/interfaces/Message.ts
new file mode 100644
index 0000000..225481e
--- /dev/null
+++ b/src/lib/components/interfaces/Message.ts
@@ -0,0 +1,8 @@
+interface Message {
+ message: string;
+ date: Date;
+ sender: string;
+ type: string;
+}
+
+export default Message;
\ No newline at end of file
diff --git a/src/lib/services/messages.js b/src/lib/services/messages.js
index 660b55f..602a168 100644
--- a/src/lib/services/messages.js
+++ b/src/lib/services/messages.js
@@ -55,6 +55,14 @@ export function addRandomMessage() {
]);
}
+export function createMessage(text) {
+ const currentDate = new Date().toLocaleString();
+ messages.update(oldMessages => [
+ ...oldMessages,
+ { text: text, timestamp: currentDate }
+ ]);
+}
+
export function clearMessages() {
messages.set([]);
}
diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte
index 87b7a02..6a31967 100644
--- a/src/routes/+page.svelte
+++ b/src/routes/+page.svelte
@@ -6,14 +6,16 @@
import Balance from '$lib/Balance.svelte';
import WalletConnect from '$lib/WalletConnect.svelte';
import GoogleAuth from '$lib/GoogleAuth.svelte';
+ import Messages from '$lib/components/Messages.svelte';
+ import MessageInput from '$lib/components/MessageInput.svelte';
let pkpWallet;
let authSig;
let pkpPubKey =
'046da3ba67065fd1e2726242ca01cd4601524893f4aa4b0042578fa6cbec28fa8c9a28eb9f7893932fc09717edc9e1db57e157a21eed346247c1db5a722a01f571';
-
-
+
+
+
diff --git a/src/routes/log/+page.svelte b/src/routes/log/+page.svelte
deleted file mode 100644
index 9d093d6..0000000
--- a/src/routes/log/+page.svelte
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
-