tahamajs/IE / Projects /front /src /components /search /UserSearchForm.tsx
tahamajs's picture
download
raw
686 Bytes
"use client";
interface UserSearchFormProps {
query: string;
setQuery: (val: string) => void;
loading: boolean;
onSearch: () => void;
}
export function UserSearchForm({ query, setQuery, loading, onSearch }: UserSearchFormProps) {
return (
<div className="flex gap-2 mb-6">
<input
type="text"
placeholder="Username…"
className="input flex-1"
value={query}
onChange={(e) => setQuery(e.target.value)}
onKeyDown={(e) => e.key === "Enter" && onSearch()}
/>
<button onClick={onSearch} disabled={loading} className="btn-primary">
{loading ? "Searching…" : "Search"}
</button>
</div>
);
}

Xet Storage Details

Size:
686 Bytes
·
Xet hash:
25d08b8ac6fa35e6882ac17e8d0f18fcfa2e596fe78c9b0695114259d337b26c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.