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>
20 lines
533 B
Text
20 lines
533 B
Text
import React, { type ButtonHTMLAttributes } from "react";
|
|
|
|
import { useDayPicker } from "../useDayPicker.js";
|
|
|
|
/**
|
|
* Render the button to navigate to the previous month in the calendar.
|
|
*
|
|
* @group Components
|
|
* @see https://daypicker.dev/guides/custom-components
|
|
*/
|
|
export function PreviousMonthButton(
|
|
props: ButtonHTMLAttributes<HTMLButtonElement>
|
|
) {
|
|
const { components } = useDayPicker();
|
|
return <components.Button {...props} />;
|
|
}
|
|
|
|
export type PreviousMonthButtonProps = Parameters<
|
|
typeof PreviousMonthButton
|
|
>[0];
|