(classes, indent)
| 45 | * @returns {string} The class names string with applied indentation. |
| 46 | */ |
| 47 | export const applyIndentation = (classes, indent) => { |
| 48 | return classes |
| 49 | .split(' ') // Split into an array of class names |
| 50 | .map(className => indent + className) // Add indentation to each class |
| 51 | .join('\n') // Join with new lines |
| 52 | .trim(); // Remove extra space at the end |
| 53 | }; |
no outgoing calls
no test coverage detected