(className = '', cssModule = globalCssModule)
| 51 | } |
| 52 | |
| 53 | export function mapToCssModules(className = '', cssModule = globalCssModule) { |
| 54 | if (!cssModule) return className; |
| 55 | return className |
| 56 | .split(' ') |
| 57 | .map((c) => cssModule[c] || c) |
| 58 | .join(' '); |
| 59 | } |
| 60 | |
| 61 | /** |
| 62 | * Returns a new object with the key/value pairs from `obj` that are not in the array `omitKeys`. |
no outgoing calls
no test coverage detected
searching dependent graphs…