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