Rocky_Mountain_Vending/.pnpm-store/v10/files/79/85086e93f36f787ab0de87fe471f72b517bd8ce4ec89823871e3b74c3814fcf4be27f8403eb5c7bd83262384de88ec683b8f1267d6f4b4e11de08b078f68f4
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

23 lines
No EOL
878 B
Text

import { createContext, useContext } from "react";
/** @ignore */
export const dayPickerContext = createContext(undefined);
/**
* Provides access to the DayPicker context, which includes properties and
* methods to interact with the DayPicker component. This hook must be used
* within a custom component.
*
* @template T - Use this type to refine the returned context type with a
* specific selection mode.
* @returns The context to work with DayPicker.
* @throws {Error} If the hook is used outside of a DayPicker provider.
* @group Hooks
* @see https://daypicker.dev/guides/custom-components
*/
export function useDayPicker() {
const context = useContext(dayPickerContext);
if (context === undefined) {
throw new Error("useDayPicker() must be used within a custom component.");
}
return context;
}
//# sourceMappingURL=useDayPicker.js.map