Rocky_Mountain_Vending/.pnpm-store/v10/files/f8/61473ae593120b81751f50d49a2146e0ca9856f7e719e0f7921a8a14419ad6194b3a9f3ddd07d7468d326198819f84e759d501fa1d3168b494744ca8ce4a44
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

32 lines
No EOL
1.1 KiB
Text

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useSelection = useSelection;
const useMulti_js_1 = require("./selection/useMulti.js");
const useRange_js_1 = require("./selection/useRange.js");
const useSingle_js_1 = require("./selection/useSingle.js");
/**
* Determines the appropriate selection hook to use based on the selection mode
* and returns the corresponding selection object.
*
* @template T - The type of DayPicker props.
* @param props - The DayPicker props.
* @param dateLib - The date utility library instance.
* @returns The selection object for the specified mode, or `undefined` if no
* mode is set.
*/
function useSelection(props, dateLib) {
const single = (0, useSingle_js_1.useSingle)(props, dateLib);
const multi = (0, useMulti_js_1.useMulti)(props, dateLib);
const range = (0, useRange_js_1.useRange)(props, dateLib);
switch (props.mode) {
case "single":
return single;
case "multiple":
return multi;
case "range":
return range;
default:
return undefined;
}
}
//# sourceMappingURL=useSelection.js.map