Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

339 B
Raw Blame
import { useSyncExternalStore } from 'react';
import { getInstallState, InstallState, subscribeInstallState } from './pwa';

/** The browser's install offer and whether kwant is installed, kept since page load. */
export const useInstall = (): InstallState => useSyncExternalStore(subscribeInstallState, getInstallState, getInstallState);