"use strict";const u=require("react"),c=e=>{const n=u.useCallback((s=>{if(Array.isArray(s)){const r=new Set(s);return e.filter(t=>r.has(t)).map(t=>({key:t}))}const o=e.find(r=>r===s);return o?{key:o}:void 0}),[e]);return u.useMemo(()=>({data:e,getItem:n}),[e,n])};exports.useKeysData=c;
