UNPKG

@j2inn/app-react

Version:

React implementation of the j2inn-app framework

33 lines (32 loc) 968 B
import { AppRootStore, AppStore } from '@j2inn/app'; import { ThemeDef } from '@j2inn/ui'; import { Client } from 'haystack-nclient'; import React from 'react'; import { DevAppRootStore } from './DevAppRootStore'; /** * The default dev root store. */ export declare const DEFAULT_DEV_ROOT_STORE: DevAppRootStore; /** * The default dev client. */ export declare const DEFAULT_DEV_CLIENT: Client; /** * Properties for the dev application container component. */ export interface DevAppContainerProps { children?: React.ReactNode; rootStore?: AppRootStore; client?: Client; appStore?: AppStore; theme?: ThemeDef; } /** * Creates a dev application container environment to run a view. * * Ideally this is run in webpack development that proxies to a real * application server. */ export declare const DevAppContainer: (({ children, appStore, rootStore, client, theme, }: DevAppContainerProps) => JSX.Element) & { displayName: string; };