feat: create component for search validators

This commit is contained in:
RadoslavDimchev 2023-11-08 22:21:37 +02:00
parent cb34ce4bb6
commit d9ce02ee18
1 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,22 @@
import { Input } from '@status-im/components'
import { SearchIcon } from '@status-im/icons'
type SearchManagementProps = {
searchValue: string
changeSearchValue: (value: string) => void
}
const SearchManagement = ({ searchValue, changeSearchValue }: SearchManagementProps) => {
return (
<Input
placeholder="Filter Validators"
value={searchValue}
onChangeText={changeSearchValue}
icon={<SearchIcon size={20} />}
onClear={() => changeSearchValue('')}
size={40}
/>
)
}
export default SearchManagement