revite/src/pages/login/forms/FormCreate.tsx

11 lines
300 B
TypeScript
Raw Normal View History

import { useContext } from "preact/hooks";
2021-07-05 06:23:23 -04:00
import { AppContext } from "../../../context/revoltjs/RevoltClient";
2021-06-18 15:21:54 -04:00
import { Form } from "./Form";
export function FormCreate() {
2021-07-05 06:25:20 -04:00
const client = useContext(AppContext);
2021-09-11 12:36:23 -04:00
return <Form page="create" callback={(data) => client.register(data)} />;
2021-06-18 15:21:54 -04:00
}