UNPKG

react-anpicker

Version:

a react date picker for supporting persian dates

11 lines (10 loc) 762 B
import { jsx as _jsx } from "react/jsx-runtime"; function ChevronIcon({ rtl, type }) { let Icon1 = _jsx("svg", Object.assign({ width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "M5.25 9.5L0.75 5L5.25 0.5", strokeLinecap: "round", strokeLinejoin: "round" }) })); const Icon2 = _jsx("svg", Object.assign({ width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, { children: _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; } export default ChevronIcon;