const normalizeText = (text: string) => {
  return text
    .toLowerCase()
    .normalize('NFD')
    .replace(/[\u0300-\u036f]/g, '');
};

export const isEqualText = (textA: string, textB: string) =>
  normalizeText(textA) === normalizeText(textB);
