Files
tom goriunovandGitHub 5c0c18149d Move charts to toolkit and improve color mode hook (#3075)
* move charts to toolkit

* refactor imports

* fix tests

* change the behavior of the color mode hook and add the noWatermark prop

* fix gas tracker test and fix toolkit build
2025-10-21 17:33:04 +02:00

24 lines
563 B
TypeScript

import type { IconProps } from '@chakra-ui/react';
import { Icon } from '@chakra-ui/react';
import React from 'react';
import LogoIcon from 'icons/networks/logo-placeholder.svg';
export const ChartWatermark = React.memo((props: IconProps) => {
return (
<Icon
position="absolute"
opacity={ 0.1 }
top="50%"
left="50%"
transform="translate(-50%, -50%)"
pointerEvents="none"
viewBox="0 0 114 20"
color={{ _light: 'link.primary', _dark: 'white' }}
{ ...props }
>
<LogoIcon/>
</Icon>
);
});