UNPKG

@rnwonder/react-date-picker

Version:

A lightweight, customizable, and accessible date picker component for React applications.

26 lines (25 loc) 577 B
"use client"; import { jsx as l } from "react/jsx-runtime"; import { D as c } from "./index-BfmjmxhR.js"; import { d as n } from "./index-C-0w3u6j.js"; import { useState as o } from "react"; const p = (e) => { const [t, r] = o(!1), [s, a] = o(n); return /* @__PURE__ */ l( c, { ...e, type: e.type || "single", handleOnChange: () => { }, setShowSelectorTwo: r, showSelectorTwo: t, setSelectorTwoProps: a, selectorTwoProps: s, yearSelectorCount: e.yearSelectorCount || 20 } ); }; export { p as default };