UNPKG

@hitachivantara/uikit-react-core

Version:

Core React components for the NEXT Design System.

18 lines (17 loc) 453 B
"use strict"; Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); const getSortIconName = (dir) => { switch (dir) { case "ascending": return "SortAsc"; case "descending": return "SortDesc"; default: return "Sort"; } }; const isParagraph = (children) => { return typeof children === "string" && /\s/.test(children); }; exports.getSortIconName = getSortIconName; exports.isParagraph = isParagraph;