UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

29 lines (27 loc) 1.04 kB
import * as React from "react"; import styled from "styled-components"; import { left } from "../../../utils/rtl"; import defaultTheme from "../../../defaultTheme"; var StyledButtonPrimitiveContentChildren = styled.div.withConfig({ displayName: "ButtonPrimitiveContentChildren__StyledButtonPrimitiveContentChildren", componentId: "xn0ytv-0" })(["display:inline-block;width:", ";text-align:", ";"], function (_ref) { var contentWidth = _ref.contentWidth; return contentWidth; }, function (_ref2) { var hasIcon = _ref2.hasIcon; return hasIcon && left; }); StyledButtonPrimitiveContentChildren.defaultProps = { theme: defaultTheme }; var ButtonPrimitiveContentChildren = function ButtonPrimitiveContentChildren(_ref3) { var children = _ref3.children, hasIcon = _ref3.hasIcon, contentWidth = _ref3.contentWidth; return /*#__PURE__*/React.createElement(StyledButtonPrimitiveContentChildren, { hasIcon: hasIcon, contentWidth: contentWidth }, children); }; export default ButtonPrimitiveContentChildren;