import * as React from 'react'; import styled from 'styled-components'; import * as tokens from '@tokens'; import { mq } from '@tokensDir/media-query'; import { dim } from '@dim'; import { Label } from '../Typography' import { BenefitsBarProps, StyledBenefitsBarProps } from './interface'; const Bar = styled.div` align-items: center; background-color: ${({ backgroundColor }: StyledBenefitsBarProps) => backgroundColor}; box-sizing: border-box; color: ${({ textColor }: StyledBenefitsBarProps) => textColor}; display: flex; height: ${dim(4)}; justify-content: center; width: 100%; z-index: 3; ${mq.md` height: ${dim(4.5)}; `} `; const Benefit = styled(Label)` margin: 0; `; const BenefitsBar: React.FC = ({ backgroundColor = tokens.colorBlack, children, textColor = tokens.colorWhite }) => ( {children} ); export default BenefitsBar;