import { cookies, headers } from "next/headers"

import { serverClient } from "@/lib/trpc/server"

import type { Metadata } from "next"

export const metadata: Metadata = {
  title: "Hello World from Webview",
}

export default async function WebViewTestPage() {
  const data = await serverClient().user.get()

  return (
    <main>
      <header>
        <h1>Hello From WebView Test Page!</h1>
        <p>{data.firstName}</p>
      </header>
    </main>
  )
}
