UNPKG

react-anpicker

Version:

a react date picker for supporting persian dates

13 lines (12 loc) 919 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); function ChevronIcon({ rtl, type }) { let Icon1 = (0, jsx_runtime_1.jsx)("svg", Object.assign({ width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M5.25 9.5L0.75 5L5.25 0.5", strokeLinecap: "round", strokeLinejoin: "round" }) })); const Icon2 = (0, jsx_runtime_1.jsx)("svg", Object.assign({ width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: (0, jsx_runtime_1.jsx)("path", { d: "M0.75 9.5L5.25 5L0.75 0.5", strokeLinecap: "round", strokeLinejoin: "round" }) })); if ((rtl && type === "next") || (!rtl && type == "prev")) return Icon2; else return Icon1; } exports.default = ChevronIcon;