Files
tom goriunovandGitHub 3e24ed769a Tx interpretation: change margins between elements (#2241)
Paddings: icons + amount/text in interpretation

Fixes #1997
2024-09-16 18:19:37 +02:00

29 lines
657 B
TypeScript

import { chakra } from '@chakra-ui/react';
import React from 'react';
import { route } from 'nextjs-routes';
import config from 'configs/app';
import * as BlockEntity from './BlockEntity';
const rollupFeature = config.features.rollup;
const BatchEntityL2 = (props: BlockEntity.EntityProps) => {
if (!rollupFeature.isEnabled) {
return null;
}
const defaultHref = route({ pathname: '/batches/[number]', query: { number: props.number.toString() } });
return (
<BlockEntity.default
{ ...props }
href={ props.href ?? defaultHref }
icon={{ name: 'txn_batches_slim' }}
/>
);
};
export default chakra(BatchEntityL2);