/** * @fileOverview Layer */ import React, { ReactNode, SVGProps } from 'react'; import classNames from 'classnames'; import { filterProps } from '../util/types'; interface LayerProps { className?: string; children?: ReactNode; } export type Props = SVGProps & LayerProps; export const Layer = React.forwardRef((props: Props, ref: any) => { const { children, className, ...others } = props; const layerClass = classNames('recharts-layer', className); return ( {children} ); });