@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.
26 lines • 918 B
JavaScript
import * as React from "react";
import styled, { css } from "styled-components";
import { left } from "../../../utils/rtl";
import defaultTheme from "../../../defaultTheme";
const StyledButtonPrimitiveContentChildren = styled.div.withConfig({
displayName: "ButtonPrimitiveContentChildren__StyledButtonPrimitiveContentChildren",
componentId: "sc-mra4yy-0"
})(["", ""], ({
hasIcon,
contentWidth,
centered
}) => css(["display:inline-block;width:", ";line-height:1;text-align:", ";"], contentWidth, hasIcon && !centered && left));
StyledButtonPrimitiveContentChildren.defaultProps = {
theme: defaultTheme
};
const ButtonPrimitiveContentChildren = ({
children,
hasIcon,
contentWidth,
centered
}) => /*#__PURE__*/React.createElement(StyledButtonPrimitiveContentChildren, {
hasIcon: hasIcon,
contentWidth: contentWidth,
centered: centered
}, children);
export default ButtonPrimitiveContentChildren;