MCPcopy Create free account
hub / github.com/code100x/cms / handleSearch

Function handleSearch

src/components/search.tsx:17–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 const paramsObj = searchParamsToObject(searchParams as any); // build fix (eslint)
16
17 const handleSearch = () => {
18 router.push(getUpdatedUrl(path, paramsObj, { search }));
19 };
20 return (
21 <div className="relative flex h-10 w-full items-center md:w-[300px] lg:w-[400px] xl:w-[500px]">
22 <SearchIcon className="absolute left-5 top-1/2 h-4 w-4 -translate-y-1/2 transform text-gray-500" />

Callers

nothing calls this directly

Calls 1

getUpdatedUrlFunction · 0.90

Tested by

no test coverage detected