• Custom hook for using the gallery to pick photos and upload them.

    Parameters

    Returns {
        galleryPhotos: GalleryPhoto[];
        pickPhotosFromGallery: (() => Promise<void>);
    }

    A function to pick photos from the gallery.

    • galleryPhotos: GalleryPhoto[]
    • pickPhotosFromGallery: (() => Promise<void>)
        • (): Promise<void>
        • Function to pick photos from the gallery and add them to the state.

          Returns Promise<void>