import React, { ChangeEventHandler, forwardRef } from 'react'; import { Input } from '@material-tailwind/react'; interface SearchBarProps { onChange?: ChangeEventHandler; value?: string; placeholder?: string; } const SearchBar: React.ForwardRefRenderFunction< HTMLInputElement, SearchBarProps > = ({ value, onChange, placeholder = 'Search', ...props }, ref) => { return (
^
); }; export default forwardRef(SearchBar);