mirror of
https://gitlab.com/MrFry/qmining-data-editor
synced 2026-04-28 11:17:38 +02:00
29 lines
580 B
JavaScript
29 lines
580 B
JavaScript
import React from 'react'
|
|
|
|
import styles from './searchBar.module.css'
|
|
|
|
export default function SearchBar(props) {
|
|
const { onChange, value } = props
|
|
return (
|
|
<div className={styles.searchContainer}>
|
|
<input
|
|
placeholder="Keresés..."
|
|
className={styles.searchBar}
|
|
type="text"
|
|
value={value}
|
|
onChange={(e) => {
|
|
onChange(e.target.value)
|
|
}}
|
|
/>
|
|
<button
|
|
onClick={() => {
|
|
onChange('')
|
|
}}
|
|
className={styles.clearButton}
|
|
>
|
|
❌
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|