Bluesky app fork with some witchin' additions 馃挮
witchsky.app
bluesky
fork
client
1export function usePhotoLibraryPermission() {
2 const requestPhotoAccessIfNeeded = async () => {
3 // On the, we use <input type="file"> to produce a filepicker
4 // This does not need any permission granting.
5 return true
6 }
7 return {requestPhotoAccessIfNeeded}
8}
9
10export function useCameraPermission() {
11 const requestCameraAccessIfNeeded = async () => {
12 return false
13 }
14
15 return {requestCameraAccessIfNeeded}
16}
17
18export function useVideoLibraryPermission() {
19 const requestVideoAccessIfNeeded = async () => {
20 return true
21 }
22
23 return {requestVideoAccessIfNeeded}
24}