budibase/packages/materialdesign-components/src/buildStyle.js

10 lines
161 B
JavaScript

export const buildStyle = styles => {
let str = ""
for (let s in styles) {
if (styles[s]) {
str += `${s}: ${styles[s]}; `
}
}
return str
}