summaryrefslogtreecommitdiff
path: root/src/pages/logintest/index.tsx
blob: df8bc083253b7fc7f9c1125a60461f8ca1ca9287 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { Form } from "./Form";
import { getMessage, greet } from "./funcs";
import { ServerForm } from "./ServerForm";

export default function HomePage() {
  return (
    <div className="flex h-full w-full flex-col items-center justify-center gap-8 p-6">
      <div className="bg-slate-100 rounded-md p-4">
        <h2 className="text-2xl">Server Form</h2>
        <ServerForm />
      </div>
      <div className="bg-slate-100 rounded-md p-4">
        <h2 className="text-2xl">Client Form</h2>
        <Form message={getMessage()} greet={greet} />
      </div>
    </div>
  );
}

export const getConfig = async () => {
  return {
    render: "dynamic",
  } as const;
};