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) 287 B
import{useState as t,useEffect as e}from"react";const r=(r,o)=>{const[s,n]=t([]);return e((()=>{if(null===r||!o)return void n([]);const t=o.filter((t=>`${t.firstName||""} ${t.lastName||""}`.toLowerCase().includes(r.toLowerCase())));n(t)}),[r,o]),s};export{r as useMentionLookupService};