export const getProfileMediaUrl = (resource) =>
  resource?.profile_media_url ??
  resource?.profile_media?.url ??
  resource?.provider_photo ??
  resource?.client?.profile_media_url ??
  resource?.client?.profile_media?.url ??
  resource?.provider?.profile_media_url ??
  resource?.provider?.profile_media?.url ??
  null;
