mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
31 lines
769 B
TypeScript
31 lines
769 B
TypeScript
import React from 'react';
|
|
|
|
import type { NextPageWithLayout } from 'nextjs/types';
|
|
|
|
import PageNextJs from 'nextjs/PageNextJs';
|
|
|
|
import config from 'configs/app';
|
|
import MultichainHome from 'ui/multichain/home/MultichainHome';
|
|
import NetworkOverview from 'ui/pages/NetworkOverview';
|
|
import LayoutHome from 'ui/shared/layout/LayoutHome';
|
|
|
|
const Page: NextPageWithLayout = () => {
|
|
return (
|
|
<PageNextJs pathname="/">
|
|
{ config.features.multichain.isEnabled ? <MultichainHome/> : <NetworkOverview/> }
|
|
</PageNextJs>
|
|
);
|
|
};
|
|
|
|
Page.getLayout = function getLayout(page: React.ReactElement) {
|
|
return (
|
|
<LayoutHome>
|
|
{ page }
|
|
</LayoutHome>
|
|
);
|
|
};
|
|
|
|
export default Page;
|
|
|
|
export { base as getServerSideProps } from 'nextjs/getServerSideProps/main';
|