export interface ImageMetadata {
  width: number;
  height: number;
}

const imageMetadata: Record<string, ImageMetadata> = {
  '/images/goodwalk-auckland-dog-walking-logo.png': { width: 241, height: 48 },
  '/images/goodwalk-auckland-dog-walking-logo-mobile.png': { width: 206, height: 41 },
  '/images/auckland-dog-walking-happy-dog-hero.png': { width: 500, height: 500 },
  '/images/auckland-dog-walking-happy-dogs-happy-humans.webp': { width: 1222, height: 1312 },
  '/images/archie-auckland-dog-walking-review.jpg': { width: 1122, height: 1402 },
  '/images/monty-auckland-dog-walking-review.jpg': { width: 1254, height: 1254 },
  '/images/otis-auckland-dog-walking-review.jpg': { width: 1254, height: 1254 },
  '/images/wallace-auckland-dog-walking-review.jpg': { width: 1254, height: 1254 },
  '/images/auckland-small-dog-pack-walk.jpg': { width: 640, height: 480 },
  '/images/auckland-pack-walk-small-dogs-group.jpg': { width: 1469, height: 1071 },
  '/images/small-medium-dogs-pack-walk.jpg': { width: 1240, height: 1269 },
  '/images/one-on-one-dog-portrait-1.jpg': { width: 1054, height: 1492 },
  '/images/one-on-one-dog-portrait-2.jpg': { width: 1091, height: 1441 },
  '/images/one-on-one-dog-portrait-3.jpg': { width: 1124, height: 1399 },
  '/images/tiny-gang-auckland-dog-pack.jpg': { width: 1024, height: 297 },
  '/images/auckland-large-dog-one-on-one-walk.jpg': { width: 1024, height: 970 },
  '/images/auckland-dogs-outdoor-pack.jpg': { width: 1024, height: 297 },
  '/images/auckland-puppy-home-visit.jpg': { width: 640, height: 427 },
  '/images/auckland-puppy-visits-cavalier-king-charles-spaniel.jpg': { width: 3327, height: 2217 },
  '/images/auckland-pack-walk-dog.jpg': { width: 480, height: 640 },
  '/images/auckland-dog-group-outing.jpg': { width: 640, height: 480 },
  '/images/founder-image-aless-goodwalk.jpg': { width: 1076, height: 1461 }
};

export function getImageMetadata(src: string | undefined | null): ImageMetadata | null {
  if (!src) {
    return null;
  }

  return imageMetadata[src] ?? null;
}
