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.

22 lines (19 loc) 684 B
import * as React from "react"; import styled from "styled-components"; import defaultTheme from "../../../defaultTheme"; const Wrapper = styled.div.withConfig({ displayName: "SectionContent__Wrapper", componentId: "sc-1tuhafa-0" })(["padding:", ";"], ({ theme }) => `0 ${theme.orbit.spaceLarge} ${theme.orbit.spaceLarge}`); // $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198 Wrapper.defaultProps = { theme: defaultTheme }; const AccordionSectionContent = ({ children, dataTest }) => /*#__PURE__*/React.createElement(Wrapper, { "data-test": dataTest && `${dataTest}Content` }, children); export default AccordionSectionContent;