UNPKG

@coko/client

Version:

Client side common code for coko apps

16 lines (15 loc) 610 B
import { ReactNode } from 'react'; import { DefaultTheme } from 'styled-components'; import { DocumentNode } from '@apollo/client'; import type { AppProps } from 'antd'; import { type MakeApolloConfigFn } from '../helpers/makeApolloClient'; type RootProps = { currentUserQuery?: DocumentNode; makeApolloConfig?: MakeApolloConfigFn; routes: ReactNode; theme: DefaultTheme; onLogout?: () => void; notification?: AppProps['notification']; }; declare const Root: ({ currentUserQuery, onLogout, makeApolloConfig, routes, theme, notification, }: RootProps) => ReactNode; export default Root;