/** Asset path under `/assets/ark-library/media/` for each category slug. */
const slugToAsset: Record<string, string> = {
  "project-ppt": "svg/project-details.svg",
  "daily-class": "svg/everyday-class.svg",
  "official-announcement": "svg/official-announcement.svg",
  "academy-materials": "png/academy-materials.png",
  "global-evangelism": "svg/global-news.svg",
  "daily-poster": "svg/poster.svg",
  "community-tweets": "svg/community.svg",
  "video-hub": "svg/videos.svg",
  "subsidy-policy": "svg/gift.svg",
  "how-to": "svg/guidelines.svg",
  "official-assets": "svg/directory.svg",
  "media-coverage": "svg/news-record.svg",
  "academy-video": "png/academy-video.png",
  "acedemy-video": "png/academy-video.png",
  "contract-address": "png/contract-address.png",
  "data-records": "png/data-records.png",
  general: "svg/general.svg",
};

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