UNPKG

335 BPlain TextView Raw
1import * as defaultLabels from "../labels/index.js";
2import type { DayPickerProps, Labels } from "../types/index.js";
3
4/** Return the formatters from the props merged with the default formatters. */
5export function getLabels(customLabels: DayPickerProps["labels"]): Labels {
6 return {
7 ...defaultLabels,
8 ...customLabels
9 };
10}