refactor(web): dependency management (#2386)
This commit is contained in:
13
packages/ui-services/src/UseCase/IsNativeIOS.ts
Normal file
13
packages/ui-services/src/UseCase/IsNativeIOS.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Result, SyncUseCaseInterface } from '@standardnotes/domain-core'
|
||||
import { Environment, Platform } from '@standardnotes/models'
|
||||
|
||||
export class IsNativeIOS implements SyncUseCaseInterface<boolean> {
|
||||
constructor(
|
||||
private environment: Environment,
|
||||
private platform: Platform,
|
||||
) {}
|
||||
|
||||
execute(): Result<boolean> {
|
||||
return Result.ok(this.environment === Environment.Mobile && this.platform === Platform.Ios)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user