UNPKG

@daml/hub-react

Version:

Daml React functions for Daml Hub

27 lines (26 loc) 783 B
import React from 'react'; import { DefaultParties } from '../default-parties/defaultParties'; import { PartyToken } from '../party-token/PartyToken'; interface DamlHubProps { token?: PartyToken | string; interval?: number; nonHubDomain?: boolean; } export declare const DamlHub: React.FC<DamlHubProps>; /** * React hook to get the default parties. */ export declare function useDefaultParties(): DefaultParties; /** * React hook to get the UserAdmin party ID. */ export declare function useAdminParty(): string | undefined; /** * React hook to get the Public party ID. */ export declare function usePublicParty(): string | undefined; /** * React hook to get the public party token. */ export declare function usePublicToken(): PartyToken | undefined; export {};