feat: create component for search validators
This commit is contained in:
parent
cb34ce4bb6
commit
d9ce02ee18
|
@ -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
|
Loading…
Reference in New Issue