mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
25 lines
570 B
TypeScript
25 lines
570 B
TypeScript
import React from 'react';
|
|
|
|
import { route } from 'nextjs-routes';
|
|
|
|
import config from 'configs/app';
|
|
|
|
import * as TxEntity from './TxEntity';
|
|
|
|
const rollupFeature = config.features.rollup;
|
|
|
|
const TxEntityL1 = (props: TxEntity.EntityProps) => {
|
|
if (!rollupFeature.isEnabled) {
|
|
return null;
|
|
}
|
|
|
|
const defaultHref = rollupFeature.parentChain.baseUrl + route({
|
|
pathname: '/tx/[hash]',
|
|
query: { hash: props.hash },
|
|
});
|
|
|
|
return <TxEntity.default { ...props } href={ props.href ?? defaultHref } link={{ external: true }}/>;
|
|
};
|
|
|
|
export default TxEntityL1;
|