mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-03 22:16:54 +00:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
import React, { useState } from 'react';
|
|
|
|
import { AppWrapper } from '../../../ui/components';
|
|
import { AppTitle } from '../../../ui/components/AppTitle';
|
|
import { AppContent } from '../../../ui/components/AppContent';
|
|
import { useApp } from '../../../os/apps/hooks/useApps';
|
|
import { MatchThemeProvider } from '../providers/MatchThemeProvider';
|
|
import MatchBottomNavigation from '../components/BottomNavigation';
|
|
import MatchContainer from './MatchContainer';
|
|
import { LoadingSpinner } from '../../../ui/components/LoadingSpinner';
|
|
|
|
export const MatchApp = () => {
|
|
const match = useApp('MATCH');
|
|
const [activePage, setActivePage] = useState(0);
|
|
|
|
const handlePageChange = (e, page) => setActivePage(page);
|
|
|
|
return (
|
|
<MatchThemeProvider>
|
|
<AppWrapper id="contact-app">
|
|
<AppTitle app={match} />
|
|
<AppContent>
|
|
<React.Suspense fallback={<LoadingSpinner />}>
|
|
<MatchContainer />
|
|
</React.Suspense>
|
|
</AppContent>
|
|
<MatchBottomNavigation activePage={activePage} handleChange={handlePageChange} />
|
|
</AppWrapper>
|
|
</MatchThemeProvider>
|
|
);
|
|
};
|