import { usePrefixCls } from '@teamix/utils';
var cls = usePrefixCls('teamix-pro-card');
export function formatSpacing(spacing) {
  var spacingArray = spacing instanceof Array ? spacing : [spacing || 0, spacing || 0];
  return {
    horizonal: spacingArray[0] / 2,
    vertical: spacingArray[1] / 2
  };
}
export function getColClassAndStyle(col) {
  if (!col) {
    return {
      style: {}
    };
  }
  if (typeof col === 'number') {
    return {
      className: cls("col-".concat(col)),
      style: {}
    };
  }
  return {
    style: {
      width: col,
      flexShrink: 0
    }
  };
}