UNPKG

1.12 kBTypeScriptView Raw
1import { AnalyticsConfig } from '@jetshop/core/analytics/AnalyticsProvider';
2import ApolloClient from 'apollo-client';
3import React from 'react';
4import { Cookies } from 'react-cookie';
5import { StaticRouterProps } from 'react-router';
6import { BootOptions } from '../components/ConfigProvider';
7import { AuthHandler } from './AuthHandler';
8import { ChannelHandler } from '../ChannelHandler/ChannelHandler';
9import { PreviewHandler } from './PreviewHandler';
10interface SharedTreeProps {
11 activeBreakpoint: string;
12 cookies: Cookies;
13 helmetContext?: {};
14 releware?: AnalyticsConfig['releware'];
15 client: ApolloClient<any>;
16 config: BootOptions;
17 Router: React.ComponentClass<StaticRouterProps>;
18 routerProps?: StaticRouterProps;
19 children: React.ReactNode;
20 authHandler: AuthHandler;
21 channelHandler: ChannelHandler;
22 previewHandler: PreviewHandler;
23}
24declare const SharedTree: ({ activeBreakpoint, cookies, helmetContext, releware, client, config, authHandler, Router, routerProps, children, channelHandler, previewHandler }: SharedTreeProps) => JSX.Element;
25export default SharedTree;