You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
485 B
TypeScript

import { h } from "preact";
import { Dispatch } from "../../utils.ts";
import { Action } from "./state.ts";
import { Client } from "../../fetch.ts";
export const Home = (p: { dispatch: Dispatch<Action>; client: Client }) => {
const button = h(
"button",
{
onClick: () => p.dispatch({ kind: "editNewSchema" }),
},
"New schema",
);
const b = h(
"button",
{
onClick: () => p.dispatch({ kind: "hello" }),
},
"Say hello",
);
return h("div", {}, button, b);
};