import { Button } from '@ablogcms/components/button';
import { HStack } from '@ablogcms/components/stack';

interface ModuleCreateFormProps {
  blogId: number;
}
function ModuleCreateForm({ blogId }: ModuleCreateFormProps) {
  return (
    <form id="module-create-form" method="post" action="" encType="multipart/form-data">
      <HStack>
        <div>
          <Button type="submit" variant="success">
            {ACMS.i18n('module_index.module_create_form.submit')}
          </Button>
        </div>
      </HStack>
      <input type="hidden" name="bid" defaultValue={blogId.toString()} />
      <input type="hidden" name="admin" defaultValue="module_edit" />
      <input type="hidden" name="edit" defaultValue="insert" />
      <input type="hidden" name="query[]" defaultValue="edit" />
      <input type="hidden" name="ACMS_POST_2GET" defaultValue="New Module" />
      <input type="hidden" name="formToken" defaultValue={window.csrfToken} />
    </form>
  );
}
export default ModuleCreateForm;
