UNPKG

reakit

Version:

Toolkit for building accessible rich web apps with React

9 lines (7 loc) 246 B
function findEnabledItemById(items, id) { if (!id) return undefined; return items === null || items === void 0 ? void 0 : items.find(function (item) { return item.id === id && !item.disabled; }); } export { findEnabledItemById as f };