mirror of https://github.com/kremalicious/blog.git
17 lines
391 B
TypeScript
17 lines
391 B
TypeScript
import React, { ReactElement } from 'react'
|
|
import * as styles from './SearchButton.module.css'
|
|
import Icon from '../../atoms/Icon'
|
|
|
|
const SearchButton = ({ onClick }: { onClick: () => void }): ReactElement => (
|
|
<button
|
|
type="button"
|
|
title="Search"
|
|
className={styles.searchButton}
|
|
onClick={onClick}
|
|
>
|
|
<Icon name="Search" />
|
|
</button>
|
|
)
|
|
|
|
export default SearchButton
|