UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

15 lines (12 loc) 310 B
'use client'; 'use strict'; function getSafeId(uid, errorMessage) { return (value) => { if (typeof value !== "string" || value.trim().length === 0) { throw new Error(errorMessage); } return `${uid}-${value}`; }; } exports.getSafeId = getSafeId; //# sourceMappingURL=get-safe-id.cjs.map