mirror of
https://github.com/portainer/portainer.git
synced 2026-08-07 09:04:48 +00:00
df4c700667
Co-authored-by: Claude <noreply@anthropic.com>
10 lines
375 B
TypeScript
10 lines
375 B
TypeScript
import { cloneElement, ReactElement } from 'react';
|
|
|
|
export * from 'recharts';
|
|
|
|
// jsdom reports zero layout dimensions, so recharts renders nothing without
|
|
// an explicit size. Pass one through instead of measuring the container.
|
|
export function ResponsiveContainer({ children }: { children: ReactElement }) {
|
|
return cloneElement(children, { width: 800, height: 300 });
|
|
}
|