mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
20 lines
462 B
TypeScript
20 lines
462 B
TypeScript
import { chakra } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import config from 'configs/app';
|
|
import { Image } from 'toolkit/chakra/image';
|
|
|
|
interface Props {
|
|
className?: string;
|
|
}
|
|
|
|
const TestnetBadge = ({ className }: Props) => {
|
|
if (!config.chain.isTestnet) {
|
|
return null;
|
|
}
|
|
|
|
return <Image className={ className } src="/static/labels/testnet.svg" h="14px" w="37px" color="red.400"/>;
|
|
};
|
|
|
|
export default React.memo(chakra(TestnetBadge));
|