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 { user } = getContextData();

  return <Main />;
}

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

  return data;
};

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