import React, { useState } from "react" type Props = { label: string search: ({detail: {query: string}}) => void } export const SearchForm = ({label, search}: Props) => { const [query, setQuery] = useState("") return (
setQuery(e.target.value)} >
) }