import type { ImageSourcePropType } from 'react-native';

import type { SpaceType } from '../types/garden';

export const SPACE_ARTWORK: Record<SpaceType, ImageSourcePropType> = {
  bedroom: require('./spaces/bedroom.png'),
  living_room: require('./spaces/living-room.png'),
  kitchen: require('./spaces/kitchen.png'),
  bathroom: require('./spaces/bathroom.png'),
  office: require('./spaces/office.png'),
  nursery: require('./spaces/nursery.png'),
  balcony: require('./spaces/balcony.png'),
  patio: require('./spaces/patio.png'),
  greenhouse: require('./spaces/greenhouse.png'),
  grow_tent: require('./spaces/grow-tent.png'),
  windowsill: require('./spaces/windowsill.png'),
  propagation_station: require('./spaces/propagation-station.png'),
  seed_starting_area: require('./spaces/seed-starting-area.png'),
  garden: require('./spaces/garden-space-art.png'),
  orchard: require('./spaces/orchard.png'),
};

export function getSpaceArtwork(spaceType?: string | null): ImageSourcePropType {
  return SPACE_ARTWORK[spaceType as SpaceType] || SPACE_ARTWORK.living_room;
}
