export enum NanoFeature {
  PEEK = 2, // peek file from drive one-by-one
  THUMBNAIL = 3, // thumbnail batch query for drive folder
  TRUST = 4, // user trust verification feature set
}

export let NANO_VERSION_FOR_FEATURE_REQUIRE_EXPLICIT_PEER_TRUST = '1.1.0';

export function isNanoFeatureSupported(nanoDriveAPIVersion: number, feature: NanoFeature): boolean {
  return nanoDriveAPIVersion >= feature;
}
