import type {ChangeEvent} from 'react' interface SearchBarProps { searchCnd: string searchKeyword: string options?: { value: string; label: string }[] onChange: ( name: string, value: string ) => void } export const SearchBar = ({ searchCnd, searchKeyword, options, onChange }: SearchBarProps) => { const handleChange = (event: ChangeEvent) => { onChange(event.target.name, event.target.value); } return ( <> {options && ( )}
) }