As part of making `EditUserAvatarProvider` "platform-agnostic` so it can be used across `web` and `native`, we're pulling `displayFailureAlert` (which uses `react-native:Alert.alert(...)`) out of `EditUserAvatarProvider`.
We will similarly need to pass `selectFromGallery(...)` and `useUploadSelectedMedia` as props to make `EditUserAvatarProvider` "fully" platform-agnostic.