/** Basename under `/assets/ark-library/media/svg/` for each category slug (matches ark-library-media/svg). */
const slugToSvg: Record<string, string> = {
  "project-ppt": "project-details.svg",
  "daily-class": "everyday-class.svg",
  "official-announcement": "official-announcement.svg",
  "academy-materials": "educational-clips.svg",
  "global-evangelism": "global-news.svg",
  "daily-poster": "poster.svg",
  "community-tweets": "community.svg",
  "video-hub": "videos.svg",
  "subsidy-policy": "gift.svg",
  "how-to": "guidelines.svg",
  "official-assets": "directory.svg",
  "media-coverage": "news-record.svg",
  "academy-video": "educational-clips.svg",
  general: "general.svg",
};

export function categorySvgUrlForSlug(slug: string): string | null {
  const file = slugToSvg[slug];
  if (!file) return null;
  return `/assets/ark-library/media/svg/${file}`;
}
