mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
15 lines
377 B
JavaScript
15 lines
377 B
JavaScript
import React, { Fragment } from 'react'
|
|
import Input from './Input'
|
|
import styles from './SearchInput.module.scss'
|
|
|
|
const SearchInput = props => (
|
|
<Fragment>
|
|
<Input type="search" placeholder="Search everything" {...props} />
|
|
<button className={styles.searchInputClose} onClick={props.onToggle}>
|
|
×
|
|
</button>
|
|
</Fragment>
|
|
)
|
|
|
|
export default SearchInput
|