mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
* 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
17 lines
427 B
TypeScript
17 lines
427 B
TypeScript
import React from 'react';
|
|
|
|
export interface ChartOverlayProps {
|
|
width: number;
|
|
height: number;
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export const ChartOverlay = React.forwardRef(({ width, height, children }: ChartOverlayProps, ref: React.ForwardedRef<SVGRectElement>) => {
|
|
return (
|
|
<g className="ChartOverlay">
|
|
{ children }
|
|
<rect ref={ ref } width={ width } height={ height } opacity={ 0 }/>
|
|
</g>
|
|
);
|
|
});
|