import { usePromiseValue } from '@/helpers/useServiceValue'; export function useActualIp(homeUrl?: string, workspaceID?: string): string | undefined { return usePromiseValue( async (): Promise => { return homeUrl && workspaceID ? await window.service.native.getLocalHostUrlWithActualInfo(homeUrl, workspaceID) : undefined; }, undefined, [homeUrl, workspaceID], ); }