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.

28 lines 878 B
import * as React from "react"; import styled from "styled-components"; import ButtonLink from "../../ButtonLink"; import Close from "../../icons/Close"; import defaultTheme from "../../defaultTheme"; import { left } from "../../utils/rtl"; const StyledDrawerClose = styled.div.withConfig({ displayName: "DrawerClose__StyledDrawerClose", componentId: "sc-orhcpk-0" })(["margin-", ":", ";"], left, ({ theme }) => theme.orbit.spaceMedium); StyledDrawerClose.defaultProps = { theme: defaultTheme }; const DrawerClose = /*#__PURE__*/React.forwardRef(({ onClick, title }, ref) => { return /*#__PURE__*/React.createElement(StyledDrawerClose, null, /*#__PURE__*/React.createElement(ButtonLink, { onClick: onClick, iconLeft: /*#__PURE__*/React.createElement(Close, null), ref: ref, type: "secondary", title: title })); }); export default DrawerClose;