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