-
Notifications
You must be signed in to change notification settings - Fork 3
/
onft.tsx
28 lines (23 loc) · 952 Bytes
/
onft.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import {observer} from 'mobx-react';
import {CustomHtmlHead} from '@/core/ui/CustomHtmlHead';
import {AppFooter, AppHeader} from '@/core/ui/Layout';
import {PageLayout} from '@/core/ui/PageLayout';
import {useOnftMetadataProviders} from '@/onft/hooks/useOnftMetadataProviders';
import {OnftMetadataProvidersContext} from '@/onft/providers/OnftMetadataProvidersContext';
import {OnftBridge} from '@/onft/ui/OnftBridge';
import {NextPageWithLayout} from '../../types/next';
const OnftPage: NextPageWithLayout = () => {
const onftMetadataProviders = useOnftMetadataProviders();
return (
<OnftMetadataProvidersContext.Provider value={onftMetadataProviders}>
<OnftBridge />
</OnftMetadataProvidersContext.Provider>
);
};
OnftPage.getLayout = (page) => (
<PageLayout centered header={<AppHeader />} footer={<AppFooter />}>
<CustomHtmlHead title='ONFT Bridge' />
{page}
</PageLayout>
);
export default observer(OnftPage);