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>
17 lines
778 B
Text
17 lines
778 B
Text
import type { DateLib } from "../classes/DateLib.js";
|
|
import type { DayPickerProps, SelectHandler, SelectedValue, Selection } from "../types/index.js";
|
|
export type UseSingle<T extends DayPickerProps> = {
|
|
select: SelectHandler<T>;
|
|
isSelected: (date: Date) => boolean;
|
|
selected: SelectedValue<T>;
|
|
};
|
|
/**
|
|
* Hook to manage single-date selection in the DayPicker component.
|
|
*
|
|
* @template T - The type of DayPicker props.
|
|
* @param props - The DayPicker props.
|
|
* @param dateLib - The date utility library instance.
|
|
* @returns An object containing the selected date, a function to select a date,
|
|
* and a function to check if a date is selected.
|
|
*/
|
|
export declare function useSingle<T extends DayPickerProps>(props: DayPickerProps, dateLib: DateLib): Selection<T>;
|