forked from sagnik/Project_Velocity
13 lines
380 B
JavaScript
13 lines
380 B
JavaScript
import React from "react";
|
|
import { useDayPicker } from "../useDayPicker.js";
|
|
/**
|
|
* Render a dropdown to navigate between years in the calendar.
|
|
*
|
|
* @group Components
|
|
* @see https://daypicker.dev/guides/custom-components
|
|
*/
|
|
export function YearsDropdown(props) {
|
|
const { components } = useDayPicker();
|
|
return React.createElement(components.Dropdown, { ...props });
|
|
}
|