mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-14 11:15:02 -05:00
18 lines
424 B
TypeScript
18 lines
424 B
TypeScript
import { useContext } from "preact/hooks";
|
|
|
|
import { AppContext } from "../../../context/revoltjs/RevoltClient";
|
|
|
|
import { Form } from "./Form";
|
|
|
|
export function FormCreate() {
|
|
const client = useContext(AppContext);
|
|
|
|
return (
|
|
<Form
|
|
page="create"
|
|
callback={async (data) => {
|
|
await client.register(import.meta.env.VITE_API_URL, data);
|
|
}}
|
|
/>
|
|
);
|
|
}
|