forked from Transparency/kgroad-frontend2
made fall auth
This commit is contained in:
1 parent
1468fac1cc
commit
45a9d698cd
75 files changed
+2199
-293
No files matched your search
@@ -0,0 +1,36 @@
|
||||
"use client";
|
||||
|
||||
import "./SearchForm.scss";
|
||||
import Image from "next/image";
|
||||
import search from "./icons/search.svg";
|
||||
|
||||
interface ISearchFormProps
|
||||
extends React.InputHTMLAttributes<HTMLInputElement> {
|
||||
handleSubmit: (e: React.MouseEvent<HTMLFormElement>) => void;
|
||||
}
|
||||
|
||||
const SearchForm: React.FC<ISearchFormProps> = ({
|
||||
handleSubmit,
|
||||
name,
|
||||
placeholder,
|
||||
value,
|
||||
onChange,
|
||||
}: ISearchFormProps) => {
|
||||
return (
|
||||
<form className="search-form" onSubmit={handleSubmit}>
|
||||
<div className="search-form__input">
|
||||
<Image src={search} alt="Search Icon" />
|
||||
<input
|
||||
onChange={onChange}
|
||||
value={value}
|
||||
placeholder={placeholder}
|
||||
name={name}
|
||||
type="text"
|
||||
/>
|
||||
</div>
|
||||
<button type="submit">Поиск</button>
|
||||
</form>
|
||||
);
|
||||
};
|
||||
|
||||
export default SearchForm;
|
||||
Reference in new issue
Block a user