@blockscout/ui-toolkit
Version:
A comprehensive collection of reusable Chakra UI components and theme system for Blockscout's projects
15 lines (14 loc) • 529 B
TypeScript
import { default as React } from 'react';
interface Props {
children: React.ReactNode;
}
declare const _default: React.MemoExoticComponent<({ children }: Props) => React.JSX.Element>;
export default _default;
interface UseRenderContentParams {
chart: {
width?: number;
height?: number;
};
transitionDuration: number | null;
}
export declare function useRenderContent(ref: React.RefObject<SVGGElement | null>, { chart, transitionDuration }: UseRenderContentParams): (x: number, y: number) => void;