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