UNPKG

@vela-ventures/ao-sync-sdk

Version:
13 lines (12 loc) 418 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.objectToInlineStyle = void 0; function objectToInlineStyle(styleObject) { return Object.entries(styleObject) .map(([key, value]) => { const cssKey = key.replace(/([A-Z])/g, "-$1").toLowerCase(); return `${cssKey}: ${value}`; }) .join(";"); } exports.objectToInlineStyle = objectToInlineStyle;