pass value

This commit is contained in:
Hristo Nedelkov 2023-09-27 11:33:18 +03:00
parent d67012a5ae
commit 6c4af99b3f
1 changed files with 5 additions and 3 deletions

View File

@ -1,9 +1,11 @@
import { Input } from "@status-im/components" import { Input } from "@status-im/components"
import { SearchIcon } from "@status-im/icons" import { SearchIcon } from "@status-im/icons"
import { useState } from "react"
const InputSearch = () => { type InputSearchProps = {
const [value, setValue] = useState('') value: string
setValue: (value: string) => void
}
const InputSearch = ({ value, setValue }: InputSearchProps) => {
return ( return (
<> <>