Files
t3code/apps/web/src/hooks/useNativeApi.ts
T
Julius Marmingeandcodex c643de8ba7 Enable safe external PR link opening in desktop app
- add desktop IPC handler to validate and open http(s) URLs via Electron shell
- expose `shell.openExternal` in shared NativeApi contracts and web bridge
- route Git PR opening and native API reads through the new `useNativeApi` hook

Co-authored-by: codex <[email protected]>
2026-02-12 14:24:41 -08:00

7 lines
164 B
TypeScript

import { useMemo } from "react";
import { readNativeApi } from "../session-logic";
export function useNativeApi() {
return useMemo(() => readNativeApi(), []);
}