import React from 'react' ; import { CommonProps } from '../Group' ; import { CommonShapeProps } from './common' ; export interface PolygonStyle extends CommonShapeProps { description description points : [ number , number ] [ ] ; } interface PolygonProps extends CommonProps { description style : PolygonStyle ; } const Polygon = ( props ) => { const { children , ... rest } = props ; return ( < div data - attr = { { ... rest , type : 'polygon' , } } > { children } < /div>); } ; export default Polygon ;