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 (26 loc) 825 B
import * as React from "react"; import styled from "styled-components"; import defaultTheme from "../../defaultTheme"; export const StyledTableBody = styled(({ children, className, dataTest }) => /*#__PURE__*/React.createElement("tbody", { className: className, "data-test": dataTest }, children)).withConfig({ displayName: "TableBody__StyledTableBody", componentId: "sc-5k0cnv-0" })(["width:100%;white-space:nowrap;border-bottom:1px solid ", ";"], ({ theme }) => theme.orbit.borderColorTable); // $FlowFixMe: https://github.com/flow-typed/flow-typed/issues/3653#issuecomment-568539198 StyledTableBody.defaultProps = { theme: defaultTheme }; const TableBody = ({ children, dataTest }) => /*#__PURE__*/React.createElement(StyledTableBody, { dataTest: dataTest }, children); export default TableBody;