import React, { forwardRef, RefAttributes } from 'react'; import { SearchIcon } from './shared/CustomIcon'; import { Input, InputProps } from './shared/Input'; const SearchBar: React.ForwardRefRenderFunction< HTMLInputElement, InputProps & RefAttributes > = ({ value, onChange, placeholder = 'Search', ...props }) => { return (
} onChange={onChange} value={value} type="search" placeholder={placeholder} appearance={'borderless'} {...props} />
); }; export default forwardRef(SearchBar);