import type { Sentiment, Emphasis } from './SentimentSurface.types';

const BASE_CLASS = 'wds-sentiment-surface';

export const sentimentClassMap: Record<Sentiment, string> = {
  negative: `${BASE_CLASS}-negative`,
  warning: `${BASE_CLASS}-warning`,
  neutral: `${BASE_CLASS}-neutral`,
  success: `${BASE_CLASS}-success`,
  proposition: `${BASE_CLASS}-proposition`,
};

export const getSentimentSurfaceClassName = (sentiment: Sentiment, emphasis: Emphasis): string => {
  return `${BASE_CLASS} ${sentimentClassMap[sentiment]}-${emphasis}`;
};
