import React from 'react'; import { Arrow } from './Arrow'; import './InputBox.css' // props = { onSubmit: (str) => {}, placeholder: string} export function InputBox({ onSubmit, placeholder }) { const [value, setValue] = React.useState(""); return (
{ e.preventDefault(); onSubmit(value) return false; }}> setValue(e.target.value)} />
) }