mirror of
https://github.com/hanzonet/explore.git
synced 2026-10-30 18:16:57 +00:00
19 lines
440 B
TypeScript
19 lines
440 B
TypeScript
import { chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import config from 'configs/app';
|
|
|
|
import * as BlockEntity from './BlockEntity';
|
|
|
|
const rollupFeature = config.features.rollup;
|
|
|
|
const BlockEntityL2 = (props: BlockEntity.EntityProps) => {
|
|
if (!rollupFeature.isEnabled) {
|
|
return null;
|
|
}
|
|
|
|
return <BlockEntity.default { ...props } icon={{ name: 'txn_batches_slim' }}/>;
|
|
};
|
|
|
|
export default chakra(BlockEntityL2);
|