/** * @fileOverview Surface */ import React, { ReactNode, CSSProperties } from 'react'; import classNames from 'classnames'; import { PresentationAttributes, filterProps } from '../util/types'; interface SurfaceProps { width: number; height: number; viewBox?: { x?: number; y?: number; width?: number; height?: number; }; className?: string; style?: CSSProperties; children?: ReactNode; } type Props = Omit, 'viewBox'> & SurfaceProps; function Surface(props: Props) { const { children, width, height, viewBox, className, style, ...others } = props; const svgView = viewBox || { width, height, x: 0, y: 0 }; const layerClass = classNames('recharts-surface', className); return ( {children} ); } export default Surface;