import { colorPalette } from '@atlaskit/adf-schema';
import getColorMessage from './getColorMessage';
import paletteMessages from './paletteMessages';
export const mapPaletteColor = (label, color) => {
  const key = label.toLowerCase().replace(' ', '-');
  const message = getColorMessage(paletteMessages, key);
  return {
    value: color,
    label,
    border: "var(--ds-border, #0B120E24)",
    message
  };
};

// row 1
export const textColorPalette = [];
export const textColorPaletteTokenBorders = [];
colorPalette.forEach((label, color) => {
  textColorPalette.push(mapPaletteColor(label, color));
});