core/components/Search.tsx
2021-01-13 21:56:53 +09:00

18 lines
251 B
TypeScript

// import { useState } from 'react'
const Search = ({ query, result }: SearchProps): JSX.Element => {
return (
<div>
{query} { result }
<input />
</div>
)
}
interface SearchProps {
query: string
result: string
}
export default Search