2021-06-14 19:01:00 +00:00
|
|
|
// Copyright 2021 Signal Messenger, LLC
|
|
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { ReactElement } from 'react';
|
|
|
|
import React from 'react';
|
2021-06-14 19:01:00 +00:00
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
|
2021-10-26 19:15:33 +00:00
|
|
|
import type { Store } from 'redux';
|
2021-06-14 19:01:00 +00:00
|
|
|
|
|
|
|
import { SmartApp } from '../smart/App';
|
2023-02-24 23:18:57 +00:00
|
|
|
import { SmartVoiceNotesPlaybackProvider } from '../smart/VoiceNotesPlaybackProvider';
|
2021-06-14 19:01:00 +00:00
|
|
|
|
|
|
|
export const createApp = (store: Store): ReactElement => (
|
|
|
|
<Provider store={store}>
|
2023-02-24 23:18:57 +00:00
|
|
|
<SmartVoiceNotesPlaybackProvider>
|
2021-06-29 19:58:29 +00:00
|
|
|
<SmartApp />
|
2023-02-24 23:18:57 +00:00
|
|
|
</SmartVoiceNotesPlaybackProvider>
|
2021-06-14 19:01:00 +00:00
|
|
|
</Provider>
|
|
|
|
);
|