mirror of
https://github.com/teamhanko/hanko.git
synced 2025-10-27 22:27:23 +08:00
22 lines
530 B
TypeScript
22 lines
530 B
TypeScript
import type { NextPage } from "next";
|
|
import dynamic from "next/dynamic";
|
|
import styles from "../styles/Todo.module.css";
|
|
import React, { useState } from "react";
|
|
|
|
const HankoAuth = dynamic(() => import("../components/HankoAuth"), {
|
|
ssr: false,
|
|
});
|
|
|
|
const Home: NextPage = () => {
|
|
const [error, setError] = useState<Error | null>(null);
|
|
|
|
return (
|
|
<div className={styles.content}>
|
|
<div className={styles.error}>{error?.message}</div>
|
|
<HankoAuth setError={setError} />
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Home;
|