From 1ae274a658d0a705b698a8873c286ec73403b1a6 Mon Sep 17 00:00:00 2001
From: polwex <polwex@sortug.com>
Date: Thu, 15 May 2025 12:17:54 +0700
Subject: m

---
 src/pages/index.tsx | 18 +++++-------------
 1 file changed, 5 insertions(+), 13 deletions(-)

(limited to 'src/pages/index.tsx')

diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index c008c4d..82ffd99 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,21 +1,13 @@
 import { Link } from "waku";
 
 import { Counter } from "../components/counter";
+import { getContextData } from "waku/middleware/context";
+import Main from "../components/Main";
 
 export default async function HomePage() {
-  const data = await getData();
+  const { user } = getContextData();
 
-  return (
-    <div>
-      <title>{data.title}</title>
-      <h1 className="text-4xl font-bold tracking-tight">{data.headline}</h1>
-      <p>{data.body}</p>
-      <Counter />
-      <Link to="/about" className="mt-4 inline-block underline">
-        About page
-      </Link>
-    </div>
-  );
+  return <Main />;
 }
 
 const getData = async () => {
@@ -30,6 +22,6 @@ const getData = async () => {
 
 export const getConfig = async () => {
   return {
-    render: "static",
+    render: "dynamic",
   } as const;
 };
-- 
cgit v1.2.3

