Rocky_Mountain_Vending/.pnpm-store/v10/files/f1/ee8908e9de73da78698b0865ad23ca7280dd0159190aff60acf55eefaec7c3a0ad9fbeaad559f974c2ee5c2e6ec02e538afdff7ac62bc2664627a88a21f720
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

21 lines
No EOL
677 B
Text

import { defaultDateLib } from "../classes/DateLib.js";
/**
* Formats the year for the dropdown option label.
*
* @param year The year to format.
* @param dateLib The date library to use for formatting. Defaults to
* `defaultDateLib`.
* @returns The formatted year as a string.
* @group Formatters
* @see https://daypicker.dev/docs/translation#custom-formatters
*/
export function formatYearDropdown(year, dateLib = defaultDateLib) {
return dateLib.format(year, "yyyy");
}
/**
* @private
* @deprecated Use `formatYearDropdown` instead.
* @group Formatters
*/
export const formatYearCaption = formatYearDropdown;
//# sourceMappingURL=formatYearDropdown.js.map