mirror of
https://github.com/luxfi/explore.git
synced 2026-11-03 07:53:34 +00:00
24 lines
798 B
TypeScript
24 lines
798 B
TypeScript
import type { NextPage } from 'next';
|
|
import dynamic from 'next/dynamic';
|
|
import React from 'react';
|
|
|
|
import type { Route } from 'nextjs-routes';
|
|
import type { Props } from 'nextjs/getServerSideProps/handlers';
|
|
import PageNextJs from 'nextjs/PageNextJs';
|
|
|
|
const MultichainTokenInstance = dynamic(() => import('ui/multichain/tokenInstance/MultichainTokenInstance'), { ssr: false });
|
|
|
|
const pathname: Route['pathname'] = '/token/[hash]/instance/[id]';
|
|
|
|
const Page: NextPage<Props<typeof pathname>> = (props: Props<typeof pathname>) => {
|
|
return (
|
|
<PageNextJs pathname={ pathname } query={ props.query } apiData={ props.apiData }>
|
|
<MultichainTokenInstance/>
|
|
</PageNextJs>
|
|
);
|
|
};
|
|
|
|
export default Page;
|
|
|
|
export { base as getServerSideProps } from 'nextjs/getServerSideProps/multichain';
|