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

10 lines
161 B
JavaScript
Raw Normal View History

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