signal-desktop/ts/state/roots/createApp.tsx

20 lines
531 B
TypeScript
Raw Normal View History

2021-06-14 19:01:00 +00:00
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import type { ReactElement } from 'react';
import React from 'react';
2021-06-14 19:01:00 +00:00
import { Provider } from 'react-redux';
import type { Store } from 'redux';
2021-06-14 19:01:00 +00:00
import { SmartApp } from '../smart/App';
import { SmartGlobalAudioProvider } from '../smart/GlobalAudioProvider';
2021-06-14 19:01:00 +00:00
export const createApp = (store: Store): ReactElement => (
<Provider store={store}>
<SmartGlobalAudioProvider>
<SmartApp />
</SmartGlobalAudioProvider>
2021-06-14 19:01:00 +00:00
</Provider>
);