import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { ContentLayout } from "../../Components/ContentLayout";
import Form from "antd/lib/form";
import { Input } from "antd";
import { useForm } from "antd/lib/form/Form";
import { ProgressButton } from "../../Components/ProgressButton";
import { useActions, useAppState } from "../../overmind";
const DaoCreate = () => {
    const [form] = useForm();
    const actions = useActions();
    const state = useAppState();
    return _jsxs(ContentLayout, { children: [_jsx("p", { className: "super-size font-variant-none", style: { marginBottom: "40px" }, children: "Create your own DAO" }), _jsxs(Form, { name: "new-proposal-form", form: form, onFinish: v => actions.newcoin.daoCreate(v)
                    .finally(_ => actions.routing.historyPush({ location: "/dao/owner/" + state.api.auth.user?.username })), wrapperCol: { span: 24 }, autoComplete: "off", children: [_jsx("div", { style: { marginBottom: 20 }, children: "Describe your dao. The description is stored onchain and cannot be changed." }), _jsx(Form.Item, { name: "descr", children: _jsx(Input.TextArea, {}) }), _jsx(Form.Item, { wrapperCol: { offset: 8, span: 16 }, children: _jsx(ProgressButton, { actionName: "api.newcoin.daoCreate", type: "primary", htmlType: "submit", progressText: "Creating your dao", children: "Create DAO" }) })] })] });
};
export default DaoCreate;
//# sourceMappingURL=DaoCreate.js.map