UNPKG

@nexusui/components

Version:

These are custom components specially-developed for NexusUI applications. They will make your life easier by giving you out-of-the-box implementations for various high-level UI elements that you can drop directly into your application.

2 lines (1 loc) 257 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useGetOptionsBySort=r=>e.useMemo((()=>r.sort(((e,r)=>{const t=null===e.name?"":`${e.name}`,o=null===r.name?"":`${r.name}`;return t.localeCompare(o)}))),[r]);