import React from "react"; import "./styles/Display.css"; const Display = ({ input, setInput, answer }) => { // const onChangeTagInput = (e) => { // // setInputVal(e.target.value.replace(/^[0-9 ()+-]+$/, "a")); // // if(e.target.value === "1") // setInput(e.target.value); // // console.log(e.target.value.test(/^[0-9 ()+-]+$/)); // // console.log(e.target.value); // }; return ( <>
{answer === "" ? ( <> ) : ( <> )}
); }; export default Display;