import { ProviderComposer } from '@affine/component/provider-composer'; import { ThemeProvider } from '@affine/component/theme-provider'; import type { createStore } from 'jotai'; import { Provider } from 'jotai'; import type { PropsWithChildren } from 'react'; import { useMemo } from 'react'; import { ConfirmModalProvider } from '../../ui/modal'; export type AffineContextProps = PropsWithChildren<{ store?: ReturnType; }>; export function AffineContext(props: AffineContextProps) { return ( [ , , , ].filter(Boolean), [props.store] )} > {props.children} ); }