export const getImageUrl = (path?: string | null): string => {
  if (!path) return '/images/placeholder.jpg'
  const baseUrl = process.env.NEXT_PUBLIC_STORAGE_URL ?? ''
  const cleanPath = path.replace(/\\/g, '/').replace(/^\/+/, '')
  return `${baseUrl}${cleanPath}`
}
