Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

416 B
Raw Blame
import { type ElectronState } from '@/store/electron/initialState';

import { GATEWAY_STABLE_DEVICE_ID_KEY } from '../projection';

/** This desktop's stable gateway device id; `undefined` until resolved, `null` = none. */
const gatewayStableDeviceId = (s: ElectronState) =>
  s.gatewayStableDeviceIdMap[GATEWAY_STABLE_DEVICE_ID_KEY]?.deviceId;

export const electronGatewaySelectors = {
  gatewayStableDeviceId,
};