export function slugify(input: string) {
  const map: Record<string, string> = {
    ş: "s",
    Ş: "s",
    ı: "i",
    İ: "i",
    ğ: "g",
    Ğ: "g",
    ü: "u",
    Ü: "u",
    ö: "o",
    Ö: "o",
    ç: "c",
    Ç: "c",
  };
  let s = input;
  for (const [k, v] of Object.entries(map)) {
    s = s.split(k).join(v);
  }
  return s
    .toLowerCase()
    .replace(/[^a-z0-9]+/g, "-")
    .replace(/(^-|-$)+/g, "");
}
