UNPKG

@equinor/mad-core

Version:

Core library for the Mobile App Delivery team

8 lines (7 loc) 302 B
import { MadAccount } from "@equinor/mad-auth"; /** * If demo mode is enabled, this will return a mock account. * Otherwise returns the result from `mad-auth`'s `useAccount` hook. * @returns account if it exists */ export declare const useAccountOrDemoAccount: () => MadAccount | null | undefined;