part of '../../core_app.dart';

Permission? _permissionForType(String type) {
  return switch (type.toLowerCase()) {
    'camera' => Permission.camera,
    'microphone' || 'audio' => Permission.microphone,
    'location' => Permission.location,
    'photos' || 'images' => Permission.photos,
    'videos' => Permission.videos,
    'storage' => Permission.storage,
    _ => null,
  };
}
