@aioha/react-provider
Version:
React provider for Aioha
19 lines (18 loc) • 552 B
TypeScript
import React, { ReactNode } from 'react';
import { Aioha, Providers, PersistentLoginProvs } from '@aioha/aioha';
export declare const AiohaContext: React.Context<{
aioha: Aioha;
user?: string;
provider?: Providers;
otherUsers: PersistentLoginProvs;
} | undefined>;
export declare const AiohaProvider: ({ aioha, children }: {
aioha: Aioha;
children: ReactNode;
}) => React.JSX.Element;
export declare const useAioha: () => {
aioha: Aioha;
user?: string;
provider?: Providers;
otherUsers: PersistentLoginProvs;
};