const MEDIA_BASE_URL = 'https://study4.com'

export function resolveMediaUrl(path: string | null | undefined): string | null {
  if (!path) return null
  if (path.startsWith('http://') || path.startsWith('https://')) return path
  return `${MEDIA_BASE_URL}${path.startsWith('/') ? path : `/${path}`}`
}
