import { compileClassNames } from '@zohodesk/utils';
/**
 * container classname based on js state
 * @param {object} props link props
 * @param {object} style link syle
 * @returns {string} classnames string with space separate
 */

export default function (props, style) {
  let {
    textEllipsis,
    wordWrap,
    textDecoration,
    color,
    size,
    active,
    visited,
    disabled
  } = props;
  return compileClassNames({
    [style.base]: true,
    [style[textDecoration]]: !!textDecoration,
    [style.active]: !!active,
    [style.visited]: !!visited,
    [style.disabled]: !!disabled,
    [style.ellipsis]: !!textEllipsis,
    [style.wrap]: !!wordWrap,
    [style[color]]: !!color,
    [style[size]]: !!size
  });
}