import React, { useState } from "react"; // import { SubmitButton } from "./submitButton"; export function ComparisonActuator({ listOfElements, pairCurrentlyBeingCompared, moveToNextStep, }) { const initialComparisonString = "x to y"; const [comparisonString, setComparisonString] = useState("x to y"); const onChangeComparisonString = async (event) => await setComparisonString(event.target.value); const onClickSubmitEvent = (event) => { // console.log(event.target.value); moveToNextStep({ listOfElements, pairCurrentlyBeingCompared, comparisonString, }); setComparisonString(initialComparisonString); }; return (