UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

13 lines (11 loc) 286 B
'use client'; function getSafeId(uid, errorMessage) { return (value) => { if (typeof value !== "string" || value.trim().length === 0) { throw new Error(errorMessage); } return `${uid}-${value}`; }; } export { getSafeId }; //# sourceMappingURL=get-safe-id.mjs.map