import { getContextData } from "waku/middleware/context";
import App from "@/picker/App";

export default async function HomePage() {
  const { user } = getContextData();

  return (
    <div>
      <h1 className="text-lg text-center">Interactive Language Explorer</h1>
      <App />;
    </div>
  );
}

const getData = async () => {
  const data = {
    title: "Waku",
    headline: "Waku",
    body: "Hello world!",
  };

  return data;
};

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