UNPKG

@raona/components

Version:

React components used at Raona to work with SPFx

17 lines (16 loc) 622 B
import { ComponentType } from 'react'; import { BaseComponentContext } from '@microsoft/sp-component-base'; export interface contextProps { SPContext: BaseComponentContext; alias: string; userId: string; userEmail: string; webAbsoluteUrl: string; webRelativeUrl: string; siteAbsoluteUrl: string; siteRelativeUrl: string; } export interface withSharepointContextProps { context: contextProps; } export declare function withSharepointContext<P extends withSharepointContextProps>(Component: ComponentType<P>): (props: Pick<P, Exclude<keyof P, "context">>) => JSX.Element;