import type { Context } from "koa";
import { TempstreamJSX } from "tempstream";
import { Page } from "@sealcode/sealgen";

import html from "src/back/html.js";

export const actionName = "HelloPage";

export default new (class HelloPagePage extends Page {
	// eslint-disable-next-line @typescript-eslint/no-unused-vars
	async canAccess(_: Context) {
		return { canAccess: true, message: "" };
	}

	async render(ctx: Context) {
		return html({
			ctx: ctx,
			title: "HelloPage",
			body: <div>Hello world</div>,
			description: "",
			css_clumps: ["default", "forms"],
		});
	}
})();
