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
  };
};