UNPKG

synapse-react-client

Version:

[![npm version](https://badge.fury.io/js/synapse-react-client.svg)](https://badge.fury.io/js/synapse-react-client) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettie

26 lines 1.09 kB
import { ReactNode } from 'react'; import { FileHandleResults, WikiPage } from '@sage-bionetworks/synapse-types'; export type SynapseWikiContextType = { ownerId?: string; wikiId?: string; wikiPage?: Partial<WikiPage>; /** Downloaded file handles that are attached to the wiki */ fileHandles?: FileHandleResults; }; /** * This must be exported to use the context in class components. */ export declare const SynapseWikiContext: import("react").Context<SynapseWikiContextType | undefined>; export type SynapseWikiContextProviderProps = { wikiContext?: SynapseWikiContextType; children?: ReactNode; }; /** * Provides context related to Synapse Wikis * @param param0 * @returns */ export declare function SynapseWikiContextProvider({ children, wikiContext, }: SynapseWikiContextProviderProps): import("react/jsx-runtime").JSX.Element; export declare const SynapseWikiContextConsumer: import("react").Consumer<SynapseWikiContextType | undefined>; export declare function useWikiContext(): SynapseWikiContextType; //# sourceMappingURL=SynapseWikiContext.d.ts.map