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

10 lines
294 B
TypeScript
Raw Normal View History

2021-12-11 16:04:12 -05:00
import { useApplicationState } from "../../../mobx/State";
2021-07-05 06:23:23 -04:00
2021-06-18 15:21:54 -04:00
import { Form } from "./Form";
export function FormCreate() {
2021-12-11 16:04:12 -05:00
const config = useApplicationState().config;
const client = config.createClient();
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
}