mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
28 lines
601 B
TypeScript
28 lines
601 B
TypeScript
import type { NextPage } from 'next';
|
|
import dynamic from 'next/dynamic';
|
|
import React from 'react';
|
|
|
|
import PageNextJs from 'nextjs/PageNextJs';
|
|
|
|
import config from 'configs/app';
|
|
|
|
const Blocks = dynamic(() => {
|
|
if (config.features.multichain.isEnabled) {
|
|
return import('ui/multichain/blocks/MultichainBlocks');
|
|
}
|
|
|
|
return import('ui/pages/Blocks');
|
|
}, { ssr: false });
|
|
|
|
const Page: NextPage = () => {
|
|
return (
|
|
<PageNextJs pathname="/blocks">
|
|
<Blocks/>
|
|
</PageNextJs>
|
|
);
|
|
};
|
|
|
|
export default Page;
|
|
|
|
export { base as getServerSideProps } from 'nextjs/getServerSideProps/main';
|