import React from "react"; import propTypes from "prop-types"; import styled from "styled-components"; import { blockSizes, colors } from "../common/theme.variables"; const StyledTr = styled.tr` color: inherit; display: table-row; height: calc(${blockSizes.md} - 2px); line-height: calc(${blockSizes.md} - 2px); vertical-align: middle; outline: none; ${props => !props.head && `&:hover { background: ${colors.navy}; color: ${colors.light} }`} `; const TableRow = ({ className, children, style, head, ...otherProps }) => { return ( {children} ); }; TableRow.defaultProps = { head: false }; TableRow.propTypes = { children: propTypes.node, className: propTypes.string, style: propTypes.object, head: propTypes.bool }; export default TableRow;