@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.
32 lines (30 loc) • 857 B
JavaScript
import * as React from "react";
import styled from "styled-components";
import defaultTheme from "../../defaultTheme";
export const StyledTableBody = styled(({
children,
className,
dataTest
}) => React.createElement("tbody", {
className: className,
"data-test": dataTest
}, children)).withConfig({
displayName: "TableBody__StyledTableBody",
componentId: "sc-1uovf8k-0"
})(["width:100%;white-space:nowrap;border-left:1px solid ", ";border-right:1px solid ", ";border-bottom:1px solid ", ";"], ({
theme
}) => theme.orbit.borderColorTable, ({
theme
}) => theme.orbit.borderColorTable, ({
theme
}) => theme.orbit.borderColorTable);
StyledTableBody.defaultProps = {
theme: defaultTheme
};
const TableBody = ({
children,
dataTest
}) => React.createElement(StyledTableBody, {
dataTest: dataTest
}, children);
export default TableBody;