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>
15 lines
442 B
Text
15 lines
442 B
Text
import * as defaultLabels from "../labels/index.js";
|
|
import type { DayPickerProps, Labels } from "../types/index.js";
|
|
|
|
/**
|
|
* Merges custom labels from the props with the default labels.
|
|
*
|
|
* @param customLabels The custom labels provided in the DayPicker props.
|
|
* @returns The merged labels object.
|
|
*/
|
|
export function getLabels(customLabels: DayPickerProps["labels"]): Labels {
|
|
return {
|
|
...defaultLabels,
|
|
...customLabels
|
|
};
|
|
}
|