UNPKG

bs-spectacle

Version:
26 lines (22 loc) 1.02 kB
// Generated by BUCKLESCRIPT VERSION 2.2.2, PLEASE EDIT WITH CARE 'use strict'; var Spectacle = require("spectacle"); var ReasonReact = require("reason-react/src/ReasonReact.js"); var Types$BsSpectacle = require("../Types.js"); var BaseProps$BsSpectacle = require("../BaseProps.js"); function make(italic, bold, caps, margin, padding, textColor, textSize, textAlign, textFont, bgColor, bgImage, bgSize, bgPosition, bgRepeat, bgDarken, overflow, height, size, fit, lineHeight, children) { var tmp = { }; if (size) { tmp.size = size[0]; } var tmp$1 = Types$BsSpectacle.to_js_boolean(fit); if (tmp$1) { tmp.fit = tmp$1[0]; } if (lineHeight) { tmp.lineHeight = lineHeight[0]; } return ReasonReact.wrapJsForReason(Spectacle.Heading, BaseProps$BsSpectacle.extendProps(italic, bold, caps, margin, padding, textColor, textSize, textAlign, textFont, bgColor, bgImage, bgSize, bgPosition, bgRepeat, bgDarken, overflow, height, tmp), children); } exports.make = make; /* spectacle Not a pure module */