import styled, { css } from 'styled-components';

import { Div } from '../../base';

import {
  theme,
  getPadding,
  getColor,
  getBorderRadius,
} from '../../styled-config';


const borderRadius = (props) => {
  return css`
    border-radius: ${getBorderRadius(props, "tooltipInner", "default")};
  `;
};

const TooltipInner = styled(Div)`
  max-width: 200px;
  padding: ${(props) => getPadding(props, 'tooltipInner', 'default')};
  color: ${(props) => getColor(props, 'tooltipInner', 'color')};
  text-align: center;
  background-color: ${(props) => getColor(props, 'tooltipInner', 'backgroundColor')};
  ${(props) => borderRadius(props)};
`;

TooltipInner.defaultProps = {
  theme,
};

export { TooltipInner };
