Open History to see the last commit
1export interface SearchProps {
2 search: string
3 onChange: (search: string) => void
4}
5β
6export const Search = ({ search, onChange }: SearchProps) => {
7 return (
8 <div className="flex gap-2 align-center items-center">
9 <label>Search</label>
10 <input
11 type="search"
12 className="border p-1 px-2 rounded-sm"
13 value={search}
14 onChange={(e) => onChange(e.target.value)}
15 ></input>
16 </div>
17 )
18}