• Custom hook for using the camera.

    Parameters

    Returns {
        newPhoto: (() => Promise<Photo>);
        photos: Photo[];
    }

    A function that can be called to capture a new photo.

    • newPhoto: (() => Promise<Photo>)
        • (): Promise<Photo>
        • Function to capture a new photo.

          Returns Promise<Photo>

          A Promise that resolves with the captured photo.

    • photos: Photo[]