summaryrefslogblamecommitdiffstats
path: root/docusaurus/src/components/FormCTA.tsx
blob: 0912dec6944f89ce860d38480cc5cb1cd65f78c0 (plain) (tree)
1
2
3
4
5
6
7
                                                
 
                                                    
                          
                                          
                                                                   
 






                           
                                       
                                                               
           
                                      

         
/* 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";

export default ({
  autoFocus = false,
  submitText = "",
}: Readonly<{
  autoFocus: boolean;
  submitText: string;
}>): React.JSX.Element => (
  <form onSubmit={submitMathInputForm}>
    <InputMathProblems autoFocus={autoFocus} defaultValue="" />
    <p></p>
    <SubmitButton text={submitText} />
  </form>
);