// @flow import React, { ComponentProps } from 'react'; import { Platform } from 'react-primitives'; import { withTheme } from '../../styled'; import { themeGet } from '@styled-system/theme-get'; import { Svg, Circle as SvgCircle } from 'react-primitives-svg'; import Box from '../Box'; type Props = { size: number, borderRadius: number | string, borderColor: string, borderWidth: number, bg: string, }; const Circle = (props: ComponentProps & Props) => { if (Platform.OS === 'sketch') { const { size, borderColor, borderRadius, borderWidth, bg, ...boxProps } = props; const fill = themeGet(`colors.${bg}`, 'green')(props); return ( ); } return ( ); }; Circle.defaultProps = { size: 32, borderRadius: '50%', // borderColor: 'black', borderWidth: 0, }; export default withTheme(Circle);