import { tableBackgroundBorderColor, tableBackgroundColorPalette } from '@atlaskit/adf-schema';
import getColorMessage from './getColorMessage';
import paletteMessages from './paletteMessages';
var cellBackgroundColorPalette = [];
tableBackgroundColorPalette.forEach(function (label, color) {
  // eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
  var key = label.toLowerCase().replace(' ', '-');
  var message = getColorMessage(paletteMessages, key);
  cellBackgroundColorPalette.push({
    value: color,
    label: label,
    border: tableBackgroundBorderColor,
    message: message
  });
});
export default cellBackgroundColorPalette;