17 lines
493 B
Plaintext
17 lines
493 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
const useMatch = require("./useMatch.cjs");
|
|
function useSearch(opts) {
|
|
return useMatch.useMatch({
|
|
from: opts.from,
|
|
strict: opts.strict,
|
|
shouldThrow: opts.shouldThrow,
|
|
structuralSharing: opts.structuralSharing,
|
|
select: (match) => {
|
|
return opts.select ? opts.select(match.search) : match.search;
|
|
}
|
|
});
|
|
}
|
|
exports.useSearch = useSearch;
|
|
//# sourceMappingURL=useSearch.cjs.map
|