import type { TenantPhoto } from '../../api'; export type LightboxImageSources = { initial: string | null; full: string | null; }; export function resolveLightboxSources(photo: TenantPhoto): LightboxImageSources { const thumbnail = photo.thumbnail_url ?? null; const full = photo.url ?? null; return { initial: thumbnail ?? full, full: full && full !== thumbnail ? full : null, }; }