mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
11 lines
515 B
TypeScript
11 lines
515 B
TypeScript
import type { CloudUserInfo } from "@roo-code/types"
|
|
|
|
/**
|
|
* Determines if remote control features should be enabled
|
|
* @param cloudUserInfo - User information from cloud service
|
|
* @param remoteControlEnabled - User's remote control setting
|
|
* @returns true if remote control should be enabled
|
|
*/
|
|
export function isRemoteControlEnabled(cloudUserInfo?: CloudUserInfo | null, remoteControlEnabled?: boolean): boolean {
|
|
return !!(cloudUserInfo?.id && cloudUserInfo.extensionBridgeEnabled && remoteControlEnabled)
|
|
}
|