change Profile Pic

fun changeProfilePic(imagePath: String, profilePic: MutableState<String>)

Function to execute the profile pic change

Parameters

imagePath

: the path of the image to set

profilePic

: the state used to display the current profile pic