summaryrefslogtreecommitdiffstats
path: root/docusaurus/src/components/FormCTA.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'docusaurus/src/components/FormCTA.tsx')
-rw-r--r--docusaurus/src/components/FormCTA.tsx27
1 files changed, 12 insertions, 15 deletions
diff --git a/docusaurus/src/components/FormCTA.tsx b/docusaurus/src/components/FormCTA.tsx
index 1b5a81e..0912dec 100644
--- a/docusaurus/src/components/FormCTA.tsx
+++ b/docusaurus/src/components/FormCTA.tsx
@@ -1,23 +1,20 @@
-/**
- * @license
- * SPDX-License-Identifier: AGPL-3.0-or-later
- * This file is part of Wolfree.
- * This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- */
+/* SPDX-License-Identifier: AGPL-3.0-or-later */
+import InputMathProblems from "./InputMathProblems";
import React from "react";
+import SubmitButton from "./SubmitButton";
import submitMathInputForm from "../functions/submitMathInputForm";
-import InputMathProblems from "./InputMathProblems";
-import ShowStepButton from "./ShowStepButton";
-const FormCTA = ({ autoFocus = Boolean() }) => (
+export default ({
+ autoFocus = false,
+ submitText = "",
+}: Readonly<{
+ autoFocus: boolean;
+ submitText: string;
+}>): React.JSX.Element => (
<form onSubmit={submitMathInputForm}>
+ <InputMathProblems autoFocus={autoFocus} defaultValue="" />
<p></p>
- <InputMathProblems autoFocus={autoFocus} />
- <p></p>
- <ShowStepButton />
- <p></p>
+ <SubmitButton text={submitText} />
</form>
);
-
-export default FormCTA;