HUE-2131 [core] Modularize the sharing permission modal