@brightsoftware/date-np
Version:
Simple & minimal Nepali date picker that just works.
10 lines (9 loc) • 620 B
JavaScript
import { jsx as t, Fragment as o } from "react/jsx-runtime";
import { usePicker as a } from "../hooks/usePicker.js";
const s = () => {
const { pickerState: r } = a(), e = r.locale;
return /* @__PURE__ */ t(o, { children: (e === "en" ? ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"] : e === "ne" ? ["आइत", "सोम", "मंगल", "बुध", "बृहस्पति", "शुक्र", "शनि"] : []).map((n, c) => /* @__PURE__ */ t("div", { className: "w-full h-full grid place-items-center font-medium text-gray-500 text-sm tracking-wide", children: n }, c)) });
};
export {
s as WeekRow
};