import styles from './Search.module.scss' import { createSignal } from 'solid-js' import { Icon } from '../_shared/Icon' type Props = { placeholder: string onChange: (value: () => string) => void } const Search = (props: Props) => { const [value, setValue] = createSignal('') const search = (event) => { event.preventDefault() setValue(event.target.value) props.onChange(value) } return (
) } export default Search