@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) • 336 B
JavaScript
;Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react");exports.useMentionLookupService=(t,r)=>{const[s,o]=e.useState([]);return e.useEffect((()=>{if(null===t||!r)return void o([]);const e=r.filter((e=>`${e.firstName||""} ${e.lastName||""}`.toLowerCase().includes(t.toLowerCase())));o(e)}),[t,r]),s};